From e031191626357a9413102a55b7df16b8aaa7b90b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 7 Oct 2024 02:10:50 -0500 Subject: [PATCH] Fix overload branch coverage exclude overloads are always unreachable at runtime --- src/propcache/_helpers_py.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/propcache/_helpers_py.py b/src/propcache/_helpers_py.py index fbda3ed..fbf1ffe 100644 --- a/src/propcache/_helpers_py.py +++ b/src/propcache/_helpers_py.py @@ -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