Skip to content

Commit

Permalink
Merge pull request #103 from Exabyte-io/update/SOF-7365
Browse files Browse the repository at this point in the history
update: create and init class one step
  • Loading branch information
timurbazhirov authored Jun 5, 2024
2 parents 602f02f + 16a3c6c commit 6546597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/mat3ra/code/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def clone(self, extra_context: Dict[str, Any] = {}) -> Any:
# To avoid:
# Argument 1 to "__init__" of "BaseUnderscoreJsonPropsHandler" has incompatible type "Dict[str, Any]";
# expected "BaseUnderscoreJsonPropsHandler"
return self.__class__.__init__(config) # type: ignore[arg-type]
return self.__class__(config)

@staticmethod
def validate_data(data: Dict[str, Any], clean: bool = False):
Expand Down

0 comments on commit 6546597

Please sign in to comment.