File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 30
30
overload ,
31
31
)
32
32
33
+ import pluggy
33
34
import pytest
34
35
from pytest import (
35
36
Class ,
@@ -539,13 +540,12 @@ def pytest_pycollect_makeitem_preprocess_async_fixtures(
539
540
return None
540
541
541
542
542
- # TODO: #778 Narrow down return type of function when dropping support for pytest 7
543
543
# The function name needs to start with "pytest_"
544
544
# see https://github.com/pytest-dev/pytest/issues/11307
545
545
@pytest .hookimpl (specname = "pytest_pycollect_makeitem" , hookwrapper = True )
546
546
def pytest_pycollect_makeitem_convert_async_functions_to_subclass (
547
547
collector : Union [pytest .Module , pytest .Class ], name : str , obj : object
548
- ) -> Generator [None , Any , None ]:
548
+ ) -> Generator [None , pluggy . Result , None ]:
549
549
"""
550
550
Converts coroutines and async generators collected as pytest.Functions
551
551
to AsyncFunction items.
You can’t perform that action at this time.
0 commit comments