File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -590,21 +590,20 @@ def _dfs(obj):
590
590
f"Unexpected data structure: { f } ."
591
591
)
592
592
elif (
593
- hasattr (f_info .type , "__origin__" )
594
- and f_info .type .__origin__ is list
593
+ hasattr (f_info .type , "__origin__" )
594
+ and f_info .type .__origin__ is list
595
595
):
596
596
t_args = f_info .type .__args__
597
597
if len (t_args ) != 1 :
598
598
raise DeserializeException (
599
599
f"List types need exactly one type argument, but got { t_args } "
600
600
)
601
601
if "list" not in f :
602
- raise DeserializeException (f"Expected type \" list\" for constructor List but got { f } " )
602
+ raise DeserializeException (
603
+ f'Expected type "list" for constructor List but got { f } '
604
+ )
603
605
t = t_args [0 ]
604
- if (
605
- inspect .isclass (t )
606
- and issubclass (t , PlutusData )
607
- ):
606
+ if inspect .isclass (t ) and issubclass (t , PlutusData ):
608
607
converted_fields .append (t .from_dict (f ))
609
608
else :
610
609
converted_fields .append (_dfs (f ))
You can’t perform that action at this time.
0 commit comments