diff options
author | Ran Benita <ran@unusedvar.com> | 2020-08-14 13:35:34 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-08-14 13:54:46 +0300 |
commit | f28af14457396b2100160985d179aa42f3c1c313 (patch) | |
tree | e9a35033411ced195e300a711e83a7e1d74d4a53 /src/_pytest/python_api.py | |
parent | 2c5403b951e616b4d1a426c7f2c155164922ce13 (diff) | |
download | pytest-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.py | 4 |
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 |