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 fc54e35 commit 3e27786Copy full SHA for 3e27786
src/_pytest/fixtures.py
@@ -82,8 +82,8 @@
82
83
# The value of the fixture -- return/yield of the fixture function (type variable).
84
FixtureValue = TypeVar("FixtureValue", covariant=True)
85
-# The type of the fixture function (type variable).
86
-FixtureFunction = TypeVar("FixtureFunction", bound=Callable[..., object])
+# The type of the fixture function (type alias).
+FixtureFunction = Callable[..., object]
87
# The type of a fixture function (type alias generic in fixture value).
88
_FixtureFunc = Callable[..., FixtureValue] | Callable[..., Generator[FixtureValue]]
89
# The type of FixtureDef.cached_result (type alias generic in fixture value).
0 commit comments