We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 028d3c3 commit 30cc7e7Copy full SHA for 30cc7e7
src/_pytest/fixtures.py
@@ -203,7 +203,8 @@ def get_parametrized_fixture_keys(
203
cs = item.callspec # type: ignore[attr-defined]
204
except AttributeError:
205
return
206
- assert isinstance(item, Function)
+ if TYPE_CHECKING:
207
+ assert isinstance(item, Function)
208
209
# cs.indices.items() is random order of argnames. Need to
210
# sort this so that different calls to
src/_pytest/python.py
@@ -12,6 +12,7 @@
12
from textwrap import dedent
13
from typing import Dict
14
from typing import List
15
+from typing import Optional
16
from typing import Tuple
17
18
import py
0 commit comments