We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c6302a commit 324020fCopy full SHA for 324020f
samples/server/petstore/python-flask/openapi_server/models/base_model_.py
@@ -8,14 +8,14 @@
8
T = typing.TypeVar('T')
9
10
11
-class Model(object):
+class Model():
12
# openapiTypes: The key is attribute name and the
13
# value is attribute type.
14
- openapi_types = {}
+ openapi_types: typing.Dict[str, type] = {}
15
16
# attributeMap: The key is attribute name and the
17
# value is json key in definition.
18
- attribute_map = {}
+ attribute_map: typing.Dict[str, str] = {}
19
20
@classmethod
21
def from_dict(cls: typing.Type[T], dikt) -> T:
0 commit comments