typing: ignore false positive with more-itertools

Fixed in https://github.com/erikrose/more-itertools/pull/374.
This commit is contained in:
Daniel Hahler 2020-01-28 01:23:44 +01:00
parent d0cb16010b
commit 35ba053f00
1 changed files with 1 additions and 1 deletions

View File

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