Skip to content

Commit

Permalink
INF-73: Fix 'new_cls' error OpenAPITools/openapi-generator#10856
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniek Roelofs committed Apr 8, 2022
1 parent 82e13a2 commit 1208d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion observatory-api/observatory/api/client/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __copy__(self):
if self.get("_spec_property_naming", False):
return cls._new_from_openapi_data(**self.__dict__)
else:
return new_cls.__new__(cls, **self.__dict__)
return cls.__new__(cls, **self.__dict__)

def __deepcopy__(self, memo):
cls = self.__class__
Expand Down

0 comments on commit 1208d12

Please sign in to comment.