summaryrefslogtreecommitdiff
path: root/src/_pytest/python_api.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-08-14 13:35:34 +0300
committerRan Benita <ran@unusedvar.com>2020-08-14 13:54:46 +0300
commitf28af14457396b2100160985d179aa42f3c1c313 (patch)
treee9a35033411ced195e300a711e83a7e1d74d4a53 /src/_pytest/python_api.py
parent2c5403b951e616b4d1a426c7f2c155164922ce13 (diff)
downloadpytest-f28af14457396b2100160985d179aa42f3c1c313.tar.gz
Don't use NotImplementedError in `@overload`s
We used it as a shortcut for avoiding coverage, but pylint has a special interpretation of it as an abstract method which we don't want.
Diffstat (limited to 'src/_pytest/python_api.py')
-rw-r--r--src/_pytest/python_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py
index c0c266cbd..a1eb29e1a 100644
--- a/src/_pytest/python_api.py
+++ b/src/_pytest/python_api.py
@@ -529,7 +529,7 @@ def raises(
*,
match: "Optional[Union[str, Pattern[str]]]" = ...
) -> "RaisesContext[_E]":
- ... # pragma: no cover
+ ...
@overload # noqa: F811
@@ -539,7 +539,7 @@ def raises( # noqa: F811
*args: Any,
**kwargs: Any
) -> _pytest._code.ExceptionInfo[_E]:
- ... # pragma: no cover
+ ...
def raises( # noqa: F811