Skip to content

Commit cada6c1

Browse files
authored
ignore mypy error on deprecated Instance usage
1 parent dd5ae0c commit cada6c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/deprecated_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def test_importing_instance_is_deprecated(pytester: Pytester) -> None:
272272
pytest.PytestDeprecationWarning,
273273
match=re.escape("The pytest.Instance collector type is deprecated"),
274274
):
275-
pytest.Instance
275+
pytest.Instance # type:ignore[attr-defined]
276276

277277
with pytest.warns(
278278
pytest.PytestDeprecationWarning,

0 commit comments

Comments
 (0)