Skip to content

Commit 6919848

Browse files
UPDATE. mypy cannot infer the second argument of super() is NativeScript class' subclass
1 parent 47a6aac commit 6919848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycardano/nativescript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def from_primitive(
5656
InvalidHereAfter,
5757
]:
5858
if t._TYPE == script_type: # type: ignore
59-
return super(NativeScript, t).from_primitive(value[1:])
59+
return super(NativeScript, t).from_primitive(value[1:]) # type: ignore
6060
else:
6161
raise DeserializeException(f"Unknown script type indicator: {script_type}")
6262

@@ -88,7 +88,7 @@ def from_dict(
8888
script_type = script_json["type"]
8989
target_class = types[script_type]
9090
script_primitive = cls._script_json_to_primitive(script_json)
91-
return super(NativeScript, target_class).from_primitive(script_primitive[1:])
91+
return super(NativeScript, target_class).from_primitive(script_primitive[1:]) # type: ignore
9292

9393
@classmethod
9494
def _script_json_to_primitive(

0 commit comments

Comments
 (0)