Upgrade mypy 0.761 -> 0.770

https://mypy-lang.blogspot.com/2020/03/mypy-0770-released.html
This commit is contained in:
Ran Benita
2020-03-15 22:49:14 +02:00
parent 6ca7a0409d
commit 817537523c
6 changed files with 10 additions and 10 deletions

View File

@@ -678,7 +678,7 @@ def raises( # noqa: F811
"""
__tracebackhide__ = True
for exc in filterfalse(
inspect.isclass, always_iterable(expected_exception, BASE_TYPE) # type: ignore[arg-type] # noqa: F821
inspect.isclass, always_iterable(expected_exception, BASE_TYPE)
):
msg = "exceptions must be derived from BaseException, not %s"
raise TypeError(msg % type(exc))