Skip to content

Commit e19efb5

Browse files
committed
Formatting
1 parent 3894d49 commit e19efb5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pycardano/plutus.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -590,21 +590,20 @@ def _dfs(obj):
590590
f"Unexpected data structure: {f}."
591591
)
592592
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
595595
):
596596
t_args = f_info.type.__args__
597597
if len(t_args) != 1:
598598
raise DeserializeException(
599599
f"List types need exactly one type argument, but got {t_args}"
600600
)
601601
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+
)
603605
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):
608607
converted_fields.append(t.from_dict(f))
609608
else:
610609
converted_fields.append(_dfs(f))

0 commit comments

Comments
 (0)