Skip to content

Commit

Permalink
config: avoid list[], set[], dict[]
Browse files Browse the repository at this point in the history
Should wait with this until Python 3.8 is dropped.
  • Loading branch information
sadra-barikbin authored and bluetech committed Jul 27, 2023
1 parent 430ad14 commit 12054a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ def _get_legacy_hook_marks(
if TYPE_CHECKING:
# abuse typeguard from importlib to avoid massive method type union thats lacking a alias
assert inspect.isroutine(method)
known_marks: set[str] = {m.name for m in getattr(method, "pytestmark", [])}
must_warn: list[str] = []
opts: dict[str, bool] = {}
known_marks: Set[str] = {m.name for m in getattr(method, "pytestmark", [])}
must_warn: List[str] = []
opts: Dict[str, bool] = {}
for opt_name in opt_names:
opt_attr = getattr(method, opt_name, AttributeError)
if opt_attr is not AttributeError:
Expand Down

0 comments on commit 12054a4

Please sign in to comment.