Fix incorrect callback typing for WebsocketHook

This commit is contained in:
Imayhaveborkedit 2023-09-28 18:56:14 -04:00 committed by GitHub
parent 44284ae107
commit 9f8f9bf56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ if TYPE_CHECKING:
SupportedModes,
)
WebsocketHook = Optional[Callable[['VoiceConnectionState', Dict[str, Any]], Coroutine[Any, Any, Any]]]
WebsocketHook = Optional[Callable[[DiscordVoiceWebSocket, Dict[str, Any]], Coroutine[Any, Any, Any]]]
SocketReaderCallback = Callable[[bytes], Any]