Skip to content

Commit 4ff1872

Browse files
committed
Format
1 parent d303105 commit 4ff1872

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

pycardano/serialization.py

+13-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class RawCBOR:
9595
frozenset,
9696
frozendict,
9797
FrozenList,
98-
IndefiniteFrozenList
98+
IndefiniteFrozenList,
9999
]
100100

101101
PRIMITIVE_TYPES = (
@@ -122,7 +122,7 @@ class RawCBOR:
122122
frozenset,
123123
frozendict,
124124
FrozenList,
125-
IndefiniteFrozenList
125+
IndefiniteFrozenList,
126126
)
127127
"""
128128
A list of types that could be encoded by
@@ -161,7 +161,17 @@ def default_encoder(
161161
encoder: CBOREncoder, value: Union[CBORSerializable, IndefiniteList]
162162
):
163163
"""A fallback function that encodes CBORSerializable to CBOR"""
164-
assert isinstance(value, (CBORSerializable, IndefiniteList, RawCBOR, FrozenList, IndefiniteFrozenList, frozendict)), (
164+
assert isinstance(
165+
value,
166+
(
167+
CBORSerializable,
168+
IndefiniteList,
169+
RawCBOR,
170+
FrozenList,
171+
IndefiniteFrozenList,
172+
frozendict,
173+
),
174+
), (
165175
f"Type of input value is not CBORSerializable, " f"got {type(value)} instead."
166176
)
167177
if isinstance(value, (IndefiniteList, IndefiniteFrozenList)):

0 commit comments

Comments
 (0)