Skip to content

Commit

Permalink
Missing part...
Browse files Browse the repository at this point in the history
Need to be more python version compatible
OpenAPITools/openapi-generator#2884
  • Loading branch information
pierre-quelin authored Nov 18, 2021
1 parent 541303a commit 99d65a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def _deserialize(data, klass):
elif klass == datetime.datetime:
return deserialize_datetime(data)
elif hasattr(klass, '__origin__'):
if klass.__extra__ == list:
if klass.__origin__ == list:
return _deserialize_list(data, klass.__args__[0])
if klass.__extra__ == dict:
if klass.__origin__ == dict:
return _deserialize_dict(data, klass.__args__[1])
else:
return deserialize_model(data, klass)
Expand Down

0 comments on commit 99d65a7

Please sign in to comment.