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/compat.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/compat.py')
-rw-r--r-- | src/_pytest/compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_pytest/compat.py b/src/_pytest/compat.py index 4b46d9c95..0c9f47de7 100644 --- a/src/_pytest/compat.py +++ b/src/_pytest/compat.py @@ -378,13 +378,13 @@ else: def __get__( self, instance: None, owner: Optional["Type[_S]"] = ... ) -> "cached_property[_S, _T]": - raise NotImplementedError() + ... @overload # noqa: F811 def __get__( # noqa: F811 self, instance: _S, owner: Optional["Type[_S]"] = ... ) -> _T: - raise NotImplementedError() + ... def __get__(self, instance, owner=None): # noqa: F811 if instance is None: |