Skip to content

Commit 324020f

Browse files
committed
update samples
1 parent 0c6302a commit 324020f

File tree

1 file changed

+3
-3
lines changed
  • samples/server/petstore/python-flask/openapi_server/models

1 file changed

+3
-3
lines changed

samples/server/petstore/python-flask/openapi_server/models/base_model_.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
T = typing.TypeVar('T')
99

1010

11-
class Model(object):
11+
class Model():
1212
# openapiTypes: The key is attribute name and the
1313
# value is attribute type.
14-
openapi_types = {}
14+
openapi_types: typing.Dict[str, type] = {}
1515

1616
# attributeMap: The key is attribute name and the
1717
# value is json key in definition.
18-
attribute_map = {}
18+
attribute_map: typing.Dict[str, str] = {}
1919

2020
@classmethod
2121
def from_dict(cls: typing.Type[T], dikt) -> T:

0 commit comments

Comments
 (0)