Browse Source

Fix incorrect callback typing for WebsocketHook

pull/9586/head
Imayhaveborkedit 2 years ago
committed by GitHub
parent
commit
9f8f9bf56b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/voice_state.py

2
discord/voice_state.py

@ -68,7 +68,7 @@ if TYPE_CHECKING:
SupportedModes, 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] SocketReaderCallback = Callable[[bytes], Any]

Loading…
Cancel
Save