mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix cached_slot_property typings again
This commit is contained in:
parent
3cb093c709
commit
3c90f16bf0
@ -127,7 +127,6 @@ else:
|
||||
T = TypeVar('T')
|
||||
T_co = TypeVar('T_co', covariant=True)
|
||||
_Iter = Union[Iterator[T], AsyncIterator[T]]
|
||||
CSP = TypeVar('CSP', bound='CachedSlotProperty')
|
||||
|
||||
|
||||
class CachedSlotProperty(Generic[T, T_co]):
|
||||
@ -137,7 +136,7 @@ class CachedSlotProperty(Generic[T, T_co]):
|
||||
self.__doc__ = getattr(function, '__doc__')
|
||||
|
||||
@overload
|
||||
def __get__(self: CSP, instance: None, owner: Type[T]) -> CSP:
|
||||
def __get__(self, instance: None, owner: Type[T]) -> CachedSlotProperty[T, T_co]:
|
||||
...
|
||||
|
||||
@overload
|
||||
|
Loading…
x
Reference in New Issue
Block a user