Skip to content

Commit

Permalink
Fix overload branch coverage exclude
Browse files Browse the repository at this point in the history
overloads are always unreachable at runtime
  • Loading branch information
bdraco committed Oct 7, 2024
1 parent 416a3b2 commit e031191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/propcache/_helpers_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def __init__(self, wrapped: Callable[..., _T]) -> None:
self.name = wrapped.__name__

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

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

Expand Down

0 comments on commit e031191

Please sign in to comment.