We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c854daa + 35ba053 commit 18ac7e0Copy full SHA for 18ac7e0
src/_pytest/python_api.py
@@ -685,7 +685,7 @@ def raises( # noqa: F811
685
"""
686
__tracebackhide__ = True
687
for exc in filterfalse(
688
- inspect.isclass, always_iterable(expected_exception, BASE_TYPE)
+ inspect.isclass, always_iterable(expected_exception, BASE_TYPE) # type: ignore[arg-type] # noqa: F821
689
):
690
msg = "exceptions must be derived from BaseException, not %s"
691
raise TypeError(msg % type(exc))
0 commit comments