Add typing for FixtureRequest.param
For now, mark it as Any until #8073 is solved Fixes #9514
This commit is contained in:
parent
c2b1d5b368
commit
895164c56d
1
AUTHORS
1
AUTHORS
|
@ -252,6 +252,7 @@ Nicholas Murphy
|
|||
Niclas Olofsson
|
||||
Nicolas Delaby
|
||||
Nikolay Kondratyev
|
||||
Nipunn Koorapati
|
||||
Olga Matoula
|
||||
Oleg Pidsadnyi
|
||||
Oleg Sushchenko
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Type FixtureRequest.param as Any.
|
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue