Skip to content

Commit 8534cea

Browse files
committed
Import ABC from collections.abc for Python 3.10 compatibility.
1 parent 6c31064 commit 8534cea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pytest_cases/fixture_parametrize_plus.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# + All contributors to <https://github.com/smarie/python-pytest-cases>
33
#
44
# License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE>
5-
from collections import Iterable
65
from inspect import isgeneratorfunction
76
from warnings import warn
87

@@ -12,6 +11,11 @@
1211
except ImportError:
1312
from funcsigs import signature, Parameter # noqa
1413

14+
try:
15+
from collections.abc import Iterable
16+
except ImportError: # noqa
17+
from collections import Iterable
18+
1519
try:
1620
from typing import Union, Callable, List, Any, Sequence, Optional # noqa
1721

0 commit comments

Comments
 (0)