Skip to content

Commit b015d4a

Browse files
refactor: Use Dict for type annotation in PHASE_REPORT_KEY for better compatibility
Signed-off-by: Rushikesh Jadhav <[email protected]>
1 parent 9e1f638 commit b015d4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conftest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import tempfile
55

66
from packaging import version
7+
from typing import Dict
78

89
import lib.config as global_config
910

@@ -119,7 +120,7 @@ def pytest_collection_modifyitems(items, config):
119120
# FIXME we may have to move this into lib/ if fixtures in sub-packages
120121
# want to make use of this feature
121122

122-
PHASE_REPORT_KEY = pytest.StashKey[dict[str, pytest.CollectReport]]()
123+
PHASE_REPORT_KEY = pytest.StashKey[Dict[str, pytest.CollectReport]]()
123124
@pytest.hookimpl(wrapper=True, tryfirst=True)
124125
def pytest_runtest_makereport(item, call):
125126
# execute all other hooks to obtain the report object

0 commit comments

Comments
 (0)