File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/openapi-generator/src/main/resources/python-flask Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ T = typing.TypeVar('T')
12
12
{ {/supportPython2} }
13
13
14
14
15
- class Model(object):
15
+ class Model({ {#supportPython2 } } object{ {/supportPython2 } } ):
16
16
# openapiTypes: The key is attribute name and the
17
17
# value is attribute type.
18
- openapi_types = { }
18
+ openapi_types{ {^supportPython2 } }: typing.Dict[str, type] { {/supportPython2 } } = { }
19
19
20
20
# attributeMap: The key is attribute name and the
21
21
# value is json key in definition.
22
- attribute_map = { }
22
+ attribute_map{ {^supportPython2 } }: typing.Dict[str, str] { {/supportPython2 } } = { }
23
23
24
24
@classmethod
25
25
def from_dict(cls{ {^supportPython2} }: typing.Type[T]{ {/supportPython2} }, dikt){ {^supportPython2} } -> T{ {/supportPython2} }:
You can’t perform that action at this time.
0 commit comments