Skip to content

Commit

Permalink
Fix mypy error type annotation needed (#12272)
Browse files Browse the repository at this point in the history
  • Loading branch information
OJFord authored Apr 30, 2022
1 parent 0b2cb06 commit 0c6302a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ T = typing.TypeVar('T')
{{/supportPython2}}


class Model(object):
class Model({{#supportPython2}}object{{/supportPython2}}):
# openapiTypes: The key is attribute name and the
# value is attribute type.
openapi_types = {}
openapi_types{{^supportPython2}}: typing.Dict[str, type]{{/supportPython2}} = {}

# attributeMap: The key is attribute name and the
# value is json key in definition.
attribute_map = {}
attribute_map{{^supportPython2}}: typing.Dict[str, str]{{/supportPython2}} = {}

@classmethod
def from_dict(cls{{^supportPython2}}: typing.Type[T]{{/supportPython2}}, dikt){{^supportPython2}} -> T{{/supportPython2}}:
Expand Down

0 comments on commit 0c6302a

Please sign in to comment.