We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a6aac commit 6919848Copy full SHA for 6919848
pycardano/nativescript.py
@@ -56,7 +56,7 @@ def from_primitive(
56
InvalidHereAfter,
57
]:
58
if t._TYPE == script_type: # type: ignore
59
- return super(NativeScript, t).from_primitive(value[1:])
+ return super(NativeScript, t).from_primitive(value[1:]) # type: ignore
60
else:
61
raise DeserializeException(f"Unknown script type indicator: {script_type}")
62
@@ -88,7 +88,7 @@ def from_dict(
88
script_type = script_json["type"]
89
target_class = types[script_type]
90
script_primitive = cls._script_json_to_primitive(script_json)
91
- return super(NativeScript, target_class).from_primitive(script_primitive[1:])
+ return super(NativeScript, target_class).from_primitive(script_primitive[1:]) # type: ignore
92
93
@classmethod
94
def _script_json_to_primitive(
0 commit comments