From 35ba053f00e4f8a85ed76cde67f87af35c598528 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 28 Jan 2020 01:23:44 +0100 Subject: [PATCH] typing: ignore false positive with more-itertools Fixed in https://github.com/erikrose/more-itertools/pull/374. --- src/_pytest/python_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index 5e5eddc5b..24145016c 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -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))