Skip to content

Commit

Permalink
Merge pull request #269 from rushikeshjadhav/master
Browse files Browse the repository at this point in the history
refactor: Use Dict for type annotation in PHASE_REPORT_KEY for better compatibility
  • Loading branch information
stormi authored Feb 6, 2025
2 parents 9e1f638 + b015d4a commit 134fd55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import tempfile

from packaging import version
from typing import Dict

import lib.config as global_config

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

PHASE_REPORT_KEY = pytest.StashKey[dict[str, pytest.CollectReport]]()
PHASE_REPORT_KEY = pytest.StashKey[Dict[str, pytest.CollectReport]]()
@pytest.hookimpl(wrapper=True, tryfirst=True)
def pytest_runtest_makereport(item, call):
# execute all other hooks to obtain the report object
Expand Down

0 comments on commit 134fd55

Please sign in to comment.