Skip to content

Commit 139afb6

Browse files
committed
fixup! fix: revert default date-time behaviour
1 parent b68043c commit 139afb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/datamodel_code_generator/parser/jsonschema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def __init__( # noqa: PLR0913
431431
treat_dot_as_module: bool = False,
432432
use_exact_imports: bool = False,
433433
default_field_extras: dict[str, Any] | None = None,
434-
target_datetime_class: DatetimeClassType | None = DatetimeClassType.Awaredatetime,
434+
target_datetime_class: DatetimeClassType | None = None,
435435
keyword_only: bool = False,
436436
frozen_dataclasses: bool = False,
437437
no_alias: bool = False,

src/datamodel_code_generator/parser/openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def __init__( # noqa: PLR0913
214214
treat_dot_as_module: bool = False,
215215
use_exact_imports: bool = False,
216216
default_field_extras: dict[str, Any] | None = None,
217-
target_datetime_class: DatetimeClassType | None = DatetimeClassType.Awaredatetime,
217+
target_datetime_class: DatetimeClassType | None = None,
218218
keyword_only: bool = False,
219219
frozen_dataclasses: bool = False,
220220
no_alias: bool = False,

0 commit comments

Comments
 (0)