ignore mypy error on deprecated Instance usage

This commit is contained in:
DetachHead
2023-08-22 17:57:59 +10:00
committed by GitHub
parent dd5ae0c3b8
commit cada6c105a

View File

@@ -272,7 +272,7 @@ def test_importing_instance_is_deprecated(pytester: Pytester) -> None:
pytest.PytestDeprecationWarning,
match=re.escape("The pytest.Instance collector type is deprecated"),
):
pytest.Instance
pytest.Instance # type:ignore[attr-defined]
with pytest.warns(
pytest.PytestDeprecationWarning,