Skip to content

Commit

Permalink
Remove no cover lines from under_cached_property.__get__
Browse files Browse the repository at this point in the history
These should already be handled by covdefaults
  • Loading branch information
bdraco committed Oct 7, 2024
1 parent bc295fd commit 60d38b9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/propcache/_helpers_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,10 @@ def __init__(self, wrapped: Callable[..., _T]) -> None:
self.name = wrapped.__name__

@overload
def __get__( # pragma: no cover
self, inst: None, owner: Optional[Type[Any]] = None
) -> Self: ... # pragma: no cover
def __get__(self, inst: None, owner: Optional[Type[Any]] = None) -> Self: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

@overload
def __get__( # pragma: no cover
self, inst: _TSelf[_T], owner: Optional[Type[Any]] = None
) -> _T: ... # pragma: no cover
def __get__(self, inst: _TSelf[_T], owner: Optional[Type[Any]] = None) -> _T: ...

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

def __get__(
self, inst: Optional[_TSelf[_T]], owner: Optional[Type[Any]] = None
Expand Down

0 comments on commit 60d38b9

Please sign in to comment.