Skip to content

Commit

Permalink
add datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jun 5, 2024
1 parent d77e681 commit 57433f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/python-dataclass.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ from dataclasses_json import config, dataclass_json
from typing import List, Optional
from enum import Enum
from uuid import uuid4
from datetime import date, datetime

{% for object in objects %}
@dataclass_json
Expand Down
1 change: 1 addition & 0 deletions templates/python-sdrdm.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from __future__ import annotations
from typing import Dict, List, Optional
from uuid import uuid4
from datetime import date, datetime

from lxml.etree import _Element
from pydantic import PrivateAttr, model_validator
Expand Down
1 change: 1 addition & 0 deletions tests/data/expected_python_dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import List, Optional
from enum import Enum
from uuid import uuid4
from datetime import date, datetime


@dataclass_json
Expand Down
1 change: 1 addition & 0 deletions tests/data/expected_python_sdrdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations
from typing import Dict, List, Optional
from uuid import uuid4
from datetime import date, datetime

from lxml.etree import _Element
from pydantic import PrivateAttr, model_validator
Expand Down

0 comments on commit 57433f2

Please sign in to comment.