Skip to content

Commit

Permalink
Use explicit default kwarg for better mypy (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
lord-haffi authored Jan 15, 2024
1 parent b283bab commit 72cc4de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bo4e_generator/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def parse_bo4e_schemas(
data_model_field_type=data_model_types.field_model,
data_type_manager_type=data_model_types.data_type_manager,
dump_resolve_reference_action=data_model_types.dump_resolve_reference_action,
use_annotated=not pydantic_v1,
# use_annotated=not pydantic_v1,
use_double_quotes=True,
use_schema_description=True,
use_subclass_enum=True,
Expand All @@ -204,6 +204,7 @@ def parse_bo4e_schemas(
remove_special_field_name_prefix=True,
allow_extra_fields=False,
allow_population_by_field_name=True,
use_default_kwarg=True,
)
parse_result = parser.parse()
if not isinstance(parse_result, dict):
Expand Down

0 comments on commit 72cc4de

Please sign in to comment.