|
64 | 64 |
|
65 | 65 | # https://github.com/pytest-dev/pytest/pull/9510 |
66 | 66 | FixtureDef = Any |
67 | | -SubRequest = Any |
68 | 67 |
|
69 | 68 |
|
70 | 69 | class PytestAsyncioError(Exception): |
@@ -282,7 +281,7 @@ def _add_kwargs( |
282 | 281 | kwargs: Dict[str, Any], |
283 | 282 | event_loop_fixture_id: str, |
284 | 283 | event_loop: asyncio.AbstractEventLoop, |
285 | | - request: SubRequest, |
| 284 | + request: FixtureRequest, |
286 | 285 | ) -> Dict[str, Any]: |
287 | 286 | sig = inspect.signature(func) |
288 | 287 | ret = kwargs.copy() |
@@ -316,7 +315,7 @@ def _wrap_asyncgen_fixture(fixturedef: FixtureDef, event_loop_fixture_id: str) - |
316 | 315 | fixture = fixturedef.func |
317 | 316 |
|
318 | 317 | @functools.wraps(fixture) |
319 | | - def _asyncgen_fixture_wrapper(request: SubRequest, **kwargs: Any): |
| 318 | + def _asyncgen_fixture_wrapper(request: FixtureRequest, **kwargs: Any): |
320 | 319 | func = _perhaps_rebind_fixture_func( |
321 | 320 | fixture, request.instance, fixturedef.unittest |
322 | 321 | ) |
@@ -355,7 +354,7 @@ def _wrap_async_fixture(fixturedef: FixtureDef, event_loop_fixture_id: str) -> N |
355 | 354 | fixture = fixturedef.func |
356 | 355 |
|
357 | 356 | @functools.wraps(fixture) |
358 | | - def _async_fixture_wrapper(request: SubRequest, **kwargs: Any): |
| 357 | + def _async_fixture_wrapper(request: FixtureRequest, **kwargs: Any): |
359 | 358 | func = _perhaps_rebind_fixture_func( |
360 | 359 | fixture, request.instance, fixturedef.unittest |
361 | 360 | ) |
|
0 commit comments