Skip to content

Commit 6546597

Browse files
Merge pull request #103 from Exabyte-io/update/SOF-7365
update: create and init class one step
2 parents 602f02f + 16a3c6c commit 6546597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/py/mat3ra/code/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def clone(self, extra_context: Dict[str, Any] = {}) -> Any:
5252
# To avoid:
5353
# Argument 1 to "__init__" of "BaseUnderscoreJsonPropsHandler" has incompatible type "Dict[str, Any]";
5454
# expected "BaseUnderscoreJsonPropsHandler"
55-
return self.__class__.__init__(config) # type: ignore[arg-type]
55+
return self.__class__(config)
5656

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

0 commit comments

Comments
 (0)