Skip to content

Commit

Permalink
fix: Use dict in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Sep 6, 2024
1 parent d7f32f8 commit 0727ed1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/schemapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ def get_python_type_representation( # noqa: C901
)
)
type_representations.extend(options)
elif self.is_object() and not for_type_hints:
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 0727ed1

Please sign in to comment.