Add typing for FixtureRequest.param

For now, mark it as Any until #8073 is solved

Fixes #9514
This commit is contained in:
Nipunn Koorapati 2022-07-13 18:13:22 -07:00
parent c2b1d5b368
commit 895164c56d
3 changed files with 4 additions and 1 deletions

View File

@ -252,6 +252,7 @@ Nicholas Murphy
Niclas Olofsson
Nicolas Delaby
Nikolay Kondratyev
Nipunn Koorapati
Olga Matoula
Oleg Pidsadnyi
Oleg Sushchenko

View File

@ -0,0 +1 @@
Type FixtureRequest.param as Any.

View File

@ -345,7 +345,7 @@ def reorder_items_atscope(
return items_done
def get_direct_param_fixture_func(request):
def get_direct_param_fixture_func(request: "FixtureRequest") -> Any:
return request.param
@ -407,6 +407,7 @@ class FixtureRequest:
self._arg2fixturedefs = fixtureinfo.name2fixturedefs.copy()
self._arg2index: Dict[str, int] = {}
self._fixturemanager: FixtureManager = pyfuncitem.session._fixturemanager
self.param: Any
@property
def scope(self) -> "_ScopeName":