Skip to content

Commit dd8445f

Browse files
committed
Black reformat
1 parent 19a1641 commit dd8445f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/cattr/converters.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ def is_optional(typ):
8282

8383

8484
def is_literal_containing_enums(typ):
85-
return is_literal(typ) and any(
86-
isinstance(val, Enum) for val in typ.__args__
87-
)
85+
return is_literal(typ) and any(isinstance(val, Enum) for val in typ.__args__)
8886

8987

9088
class Converter:
@@ -389,9 +387,7 @@ def _structure_simple_literal(val, type):
389387

390388
@staticmethod
391389
def _structure_enum_literal(val, type):
392-
vals = {
393-
(x.value if isinstance(x, Enum) else x): x for x in type.__args__
394-
}
390+
vals = {(x.value if isinstance(x, Enum) else x): x for x in type.__args__}
395391
try:
396392
return vals[val]
397393
except KeyError:

0 commit comments

Comments
 (0)