Skip to content

Commit 12054a4

Browse files
sadra-barikbinbluetech
authored andcommitted
config: avoid list[], set[], dict[]
Should wait with this until Python 3.8 is dropped.
1 parent 430ad14 commit 12054a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytest/config/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ def _get_legacy_hook_marks(
353353
if TYPE_CHECKING:
354354
# abuse typeguard from importlib to avoid massive method type union thats lacking a alias
355355
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] = {}
356+
known_marks: Set[str] = {m.name for m in getattr(method, "pytestmark", [])}
357+
must_warn: List[str] = []
358+
opts: Dict[str, bool] = {}
359359
for opt_name in opt_names:
360360
opt_attr = getattr(method, opt_name, AttributeError)
361361
if opt_attr is not AttributeError:

0 commit comments

Comments
 (0)