File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3030 overload ,
3131)
3232
33+ import pluggy
3334import pytest
3435from pytest import (
3536 Class ,
@@ -539,13 +540,12 @@ def pytest_pycollect_makeitem_preprocess_async_fixtures(
539540 return None
540541
541542
542- # TODO: #778 Narrow down return type of function when dropping support for pytest 7
543543# The function name needs to start with "pytest_"
544544# see https://github.com/pytest-dev/pytest/issues/11307
545545@pytest .hookimpl (specname = "pytest_pycollect_makeitem" , hookwrapper = True )
546546def pytest_pycollect_makeitem_convert_async_functions_to_subclass (
547547 collector : Union [pytest .Module , pytest .Class ], name : str , obj : object
548- ) -> Generator [None , Any , None ]:
548+ ) -> Generator [None , pluggy . Result , None ]:
549549 """
550550 Converts coroutines and async generators collected as pytest.Functions
551551 to AsyncFunction items.
You can’t perform that action at this time.
0 commit comments