Skip to content

Commit

Permalink
refactor: Narrowed down return type of pytest_fixture_setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
seifertm committed Aug 9, 2024
1 parent 4c7cfb4 commit 171da4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,11 +756,10 @@ def pytest_generate_tests(metafunc: Metafunc) -> None:
)


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

0 comments on commit 171da4f

Please sign in to comment.