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 1144117 commit e375088Copy full SHA for e375088
pycardano/serialization.py
@@ -420,6 +420,8 @@ def _restore_dataclass_field(
420
f"List types need exactly one type argument, but got {t_args}"
421
)
422
t = t_args[0]
423
+ if not isinstance(v, list):
424
+ raise DeserializeException(f"Expected type list but got {type(v)}")
425
if isclass(t) and issubclass(t, CBORSerializable):
426
return IndefiniteList([t.from_primitive(w) for w in v])
427
else:
0 commit comments