Ignore depredcated warns(None) overload errors from mypy

This commit is contained in:
Olga Matoula
2021-05-17 09:50:59 +01:00
parent dd8ad3fa9c
commit 3f414d7bbe
4 changed files with 4 additions and 4 deletions

View File

@@ -310,7 +310,7 @@ class TestWarns:
# This should become an error when WARNS_NONE_ARG is removed in Pytest 7.0
with warnings.catch_warnings():
warnings.simplefilter("ignore")
with pytest.warns(None) as record:
with pytest.warns(None) as record: # type: ignore[call-overload]
warnings.warn("user", UserWarning)
warnings.warn("runtime", RuntimeWarning)