mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Remove generic from Interaction and ConnectionState
This results in poor ergonomics due to the lack of default generics for the common case. For most users this ends up in a degraded experience since the type will resolve to Unknown rather than at the very least a Client.
This commit is contained in:
@ -46,7 +46,6 @@ from .enums import Status
|
||||
from typing import TYPE_CHECKING, Any, Callable, Tuple, Type, Optional, List, Dict
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing_extensions import Self
|
||||
from .gateway import DiscordWebSocket
|
||||
from .activity import BaseActivity
|
||||
from .enums import Status
|
||||
@ -317,7 +316,7 @@ class AutoShardedClient(Client):
|
||||
"""
|
||||
|
||||
if TYPE_CHECKING:
|
||||
_connection: AutoShardedConnectionState[Self]
|
||||
_connection: AutoShardedConnectionState
|
||||
|
||||
def __init__(self, *args: Any, loop: Optional[asyncio.AbstractEventLoop] = None, **kwargs: Any) -> None:
|
||||
kwargs.pop('shard_id', None)
|
||||
|
Reference in New Issue
Block a user