Skip to content

Commit

Permalink
fix: Map instead of dict in generated annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Sep 6, 2024
1 parent bc3bd25 commit 1c22c86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/schemapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"string": "str",
"number": "float",
"integer": "int",
"object": "dict",
"object": "Map",
"boolean": "bool",
"array": "list",
"null": "None",
Expand Down Expand Up @@ -449,8 +449,6 @@ def get_python_type_representation( # noqa: C901
)
)
type_representations.extend(options)
elif self.is_object():
type_representations.append("dict")
elif self.is_array():
# A list is invariant in its type parameter. This means that e.g.
# List[str] is not a subtype of List[Union[core.FieldName, str]]
Expand Down

0 comments on commit 1c22c86

Please sign in to comment.