Skip to content

Commit

Permalink
Change type from Any to object for under_cached_property.__get__
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 7, 2024
1 parent cc02c1f commit 883fdb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/propcache/_helpers_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ def __init__(self, wrapped: Callable[..., _T]) -> None:
self.name = wrapped.__name__

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

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

@overload
def __get__(self, inst: _TSelf[_T], owner: Optional[Type[Any]] = None) -> _T: ...
def __get__(self, inst: _TSelf[_T], owner: Optional[Type[object]] = 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
self, inst: Optional[_TSelf[_T]], owner: Optional[Type[object]] = None
) -> Union[_T, Self]:
if inst is None:
return self
Expand Down

0 comments on commit 883fdb7

Please sign in to comment.