typing: ignore false positive with more-itertools
Fixed in https://github.com/erikrose/more-itertools/pull/374.
This commit is contained in:
parent
d0cb16010b
commit
35ba053f00
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue