aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-23 21:30:44 -0400
committerRapptz <[email protected]>2021-05-23 21:30:44 -0400
commit3c90f16bf07ae7455df894244f1e5fef22b15664 (patch)
treec0ec4f8b972efc258f1f63b0d35ec6ecdf8fcc8c
parentAdd a note about overwriting in set_permissions (diff)
downloaddiscord.py-3c90f16bf07ae7455df894244f1e5fef22b15664.tar.xz
discord.py-3c90f16bf07ae7455df894244f1e5fef22b15664.zip
Fix cached_slot_property typings again
-rw-r--r--discord/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/utils.py b/discord/utils.py
index 22a0c40c..3682cffd 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -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