Skip to content

Commit

Permalink
update: create and init class one step
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Jun 5, 2024
1 parent 602f02f commit 16a3c6c
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 16a3c6c

Please sign in to comment.