From 0c6302a3131ba49271a74b57d1209b375b9fb7f0 Mon Sep 17 00:00:00 2001 From: Oliver Ford Date: Sat, 30 Apr 2022 09:11:08 +0000 Subject: [PATCH] Fix mypy error type annotation needed (#12272) --- .../src/main/resources/python-flask/base_model_.mustache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-flask/base_model_.mustache b/modules/openapi-generator/src/main/resources/python-flask/base_model_.mustache index e41e51e2a257..e2a33d46b8e7 100644 --- a/modules/openapi-generator/src/main/resources/python-flask/base_model_.mustache +++ b/modules/openapi-generator/src/main/resources/python-flask/base_model_.mustache @@ -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}}: