Skip to content

Commit 35ba053

Browse files
committed
typing: ignore false positive with more-itertools
Fixed in more-itertools/more-itertools#374.
1 parent d0cb160 commit 35ba053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/python_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def raises( # noqa: F811
685685
"""
686686
__tracebackhide__ = True
687687
for exc in filterfalse(
688-
inspect.isclass, always_iterable(expected_exception, BASE_TYPE)
688+
inspect.isclass, always_iterable(expected_exception, BASE_TYPE) # type: ignore[arg-type] # noqa: F821
689689
):
690690
msg = "exceptions must be derived from BaseException, not %s"
691691
raise TypeError(msg % type(exc))

0 commit comments

Comments
 (0)