Skip to content

Commit aaa160f

Browse files
committed
Linting
1 parent e163bd7 commit aaa160f

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

graphene_pydantic/converters.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,19 @@ def convert_generic_python_type(
266266
return convert_union_type(
267267
type_, field, registry, parent_type=parent_type, model=model
268268
)
269-
elif origin in (
270-
T.Tuple,
271-
T.List,
272-
T.Set,
273-
T.Collection,
274-
T.Iterable,
275-
list,
276-
set,
277-
) or issubclass(origin, collections.abc.Sequence):
269+
elif (
270+
origin
271+
in (
272+
T.Tuple,
273+
T.List,
274+
T.Set,
275+
T.Collection,
276+
T.Iterable,
277+
list,
278+
set,
279+
)
280+
or issubclass(origin, collections.abc.Sequence)
281+
):
278282
# TODO: find a better way of divining that the origin is sequence-like
279283
inner_types = getattr(type_, "__args__", [])
280284
if not inner_types: # pragma: no cover # this really should be impossible

0 commit comments

Comments
 (0)