Skip to content

Commit a657792

Browse files
committed
Correct a workaround for PyPy
1 parent 1ce4222 commit a657792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphql/pyutils/is_iterable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
collection_types: Any = [Collection]
88
if not isinstance({}.values(), Collection): # Python < 3.7.2
99
collection_types.append(ValuesView)
10-
if not isinstance(array, Collection): # PyPy issue 3820
10+
if not issubclass(array, Collection): # PyPy <= 7.3.9
1111
collection_types.append(array)
1212
collection_types = (
1313
collection_types[0] if len(collection_types) == 1 else tuple(collection_types)

0 commit comments

Comments
 (0)