mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Reformat entire project with ruff instead of black
This commit is contained in:
@ -217,7 +217,7 @@ class VoiceClient(VoiceProtocol):
|
||||
|
||||
def __init__(self, client: Client, channel: abc.Connectable) -> None:
|
||||
if not has_nacl:
|
||||
raise RuntimeError("PyNaCl library needed in order to use voice")
|
||||
raise RuntimeError('PyNaCl library needed in order to use voice')
|
||||
|
||||
super().__init__(client, channel)
|
||||
state = client._connection
|
||||
@ -321,7 +321,7 @@ class VoiceClient(VoiceProtocol):
|
||||
.. versionadded:: 1.4
|
||||
"""
|
||||
ws = self._connection.ws
|
||||
return float("inf") if not ws else ws.latency
|
||||
return float('inf') if not ws else ws.latency
|
||||
|
||||
@property
|
||||
def average_latency(self) -> float:
|
||||
@ -330,7 +330,7 @@ class VoiceClient(VoiceProtocol):
|
||||
.. versionadded:: 1.4
|
||||
"""
|
||||
ws = self._connection.ws
|
||||
return float("inf") if not ws else ws.average_latency
|
||||
return float('inf') if not ws else ws.average_latency
|
||||
|
||||
async def disconnect(self, *, force: bool = False) -> None:
|
||||
"""|coro|
|
||||
|
Reference in New Issue
Block a user