Skip to content

Commit 59afabf

Browse files
committed
refactor: Narrowed down return type of pytest_fixture_setup.
1 parent d0318c3 commit 59afabf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytest_asyncio/plugin.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,10 @@ def pytest_generate_tests(metafunc: Metafunc) -> None:
756756
)
757757

758758

759-
# TODO: #778 Narrow down return type of function when dropping support for pytest 7
760759
@pytest.hookimpl(hookwrapper=True)
761760
def pytest_fixture_setup(
762761
fixturedef: FixtureDef,
763-
) -> Generator[None, Any, None]:
762+
) -> Generator[None, pluggy.Result, None]:
764763
"""Adjust the event loop policy when an event loop is produced."""
765764
if fixturedef.argname == "event_loop":
766765
# The use of a fixture finalizer is preferred over the

0 commit comments

Comments
 (0)