Skip to content

Commit 18ac7e0

Browse files
authored
Merge pull request #6593 from blueyed/typing-ignore-more-itertools
typing: ignore false positive with more-itertools
2 parents c854daa + 35ba053 commit 18ac7e0

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)