Reformat entire project with ruff instead of black

This commit is contained in:
Rapptz
2025-08-18 20:15:44 -04:00
parent 3ef6272e07
commit 44a44e938f
88 changed files with 485 additions and 730 deletions

View File

@ -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|