edit authors file

This commit is contained in:
Itxaso Aizpurua 2022-10-08 08:27:40 +02:00
parent 5b4df5e295
commit 37a84f6492
2 changed files with 4 additions and 3 deletions

View File

@ -154,6 +154,7 @@ Ian Bicking
Ian Lesperance Ian Lesperance
Ilya Konstantinov Ilya Konstantinov
Ionuț Turturică Ionuț Turturică
Itxaso Aizpurua
Iwan Briquemont Iwan Briquemont
Jaap Broekhuizen Jaap Broekhuizen
Jakob van Santen Jakob van Santen

View File

@ -351,9 +351,9 @@ def _get_legacy_hook_marks(
if TYPE_CHECKING: if TYPE_CHECKING:
# abuse typeguard from importlib to avoid massive method type union thats lacking a alias # abuse typeguard from importlib to avoid massive method type union thats lacking a alias
assert inspect.isroutine(method) assert inspect.isroutine(method)
known_marks: set[str] = {m.name for m in getattr(method, "pytestmark", [])} known_marks: Set[str] = {m.name for m in getattr(method, "pytestmark", [])}
must_warn: list[str] = [] must_warn: List[str] = []
opts: dict[str, bool] = {} opts: Dict[str, bool] = {}
for opt_name in opt_names: for opt_name in opt_names:
opt_attr = getattr(method, opt_name, AttributeError) opt_attr = getattr(method, opt_name, AttributeError)
if opt_attr is not AttributeError: if opt_attr is not AttributeError: