We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430ad14 commit 12054a4Copy full SHA for 12054a4
src/_pytest/config/__init__.py
@@ -353,9 +353,9 @@ def _get_legacy_hook_marks(
353
if TYPE_CHECKING:
354
# abuse typeguard from importlib to avoid massive method type union thats lacking a alias
355
assert inspect.isroutine(method)
356
- known_marks: set[str] = {m.name for m in getattr(method, "pytestmark", [])}
357
- must_warn: list[str] = []
358
- opts: dict[str, bool] = {}
+ known_marks: Set[str] = {m.name for m in getattr(method, "pytestmark", [])}
+ must_warn: List[str] = []
+ opts: Dict[str, bool] = {}
359
for opt_name in opt_names:
360
opt_attr = getattr(method, opt_name, AttributeError)
361
if opt_attr is not AttributeError:
0 commit comments