Merge pull request #6593 from blueyed/typing-ignore-more-itertools

typing: ignore false positive with more-itertools
This commit is contained in:
Daniel Hahler 2020-01-28 14:24:24 +01:00 committed by GitHub
commit 18ac7e0b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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))