diff --git a/tools/schemapi/utils.py b/tools/schemapi/utils.py index b93614fd7..8c38797f4 100644 --- a/tools/schemapi/utils.py +++ b/tools/schemapi/utils.py @@ -38,7 +38,7 @@ "string": "str", "number": "float", "integer": "int", - "object": "dict", + "object": "Map", "boolean": "bool", "array": "list", "null": "None", @@ -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]]