Skip to content

Commit 77a23ca

Browse files
author
alex.chen
committed
fix the polymorphic bug
1 parent 6d37554 commit 77a23ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/swagger-codegen/src/main/resources/python/api_client.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,7 @@ class ApiClient(object):
608608
:return: model object.
609609
"""
610610

611-
if not klass.swagger_types and not self.__hasattr(klass,
612-
'get_real_child_model'):
611+
if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'):
613612
return data
614613

615614
kwargs = {}

0 commit comments

Comments
 (0)