Skip to content

Commit

Permalink
style: use single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhnsy committed Jul 21, 2022
1 parent a335253 commit 6612696
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
'--onefile',
]

if platform != "Linux":
if platform != 'Linux':
args.extend(
(
'--add-binary',
Expand Down
2 changes: 1 addition & 1 deletion swish/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@


__all__ = (
"App",
'App',
)


Expand Down
8 changes: 4 additions & 4 deletions swish/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@


__all__ = (
"setup_config",
"CONFIG",
'setup_config',
'CONFIG',
)


Expand All @@ -48,8 +48,8 @@ def setup_config() -> dict[str, Any]:
'IP': {
'blocks': []
},
"SEARCH": {
"max_results": 10
'SEARCH': {
'max_results': 10
},
'LOGGING': {
'path': 'logs/',
Expand Down
2 changes: 1 addition & 1 deletion swish/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


__all__ = (
"setup_logging",
'setup_logging',
)


Expand Down
2 changes: 1 addition & 1 deletion swish/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def handle_payload(self, payload: ReceivedPayload) -> None:
await self._PAYLOAD_HANDLERS[op](payload['d'])

async def send_payload(self, op: SentPayloadOp, data: Any) -> None:
await self._websocket.send_json({'op': op, "d": data})
await self._websocket.send_json({'op': op, 'd': data})

# connection handlers

Expand Down
24 changes: 12 additions & 12 deletions swish/types/payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@

__all__ = (
# Received
"VoiceUpdateData",
"PlayData",
"SetPauseStateData",
"SetPositionData",
"SetFilterData",
'VoiceUpdateData',
'PlayData',
'SetPauseStateData',
'SetPositionData',
'SetFilterData',

"ReceivedPayloadOp",
"ReceivedPayload",
'ReceivedPayloadOp',
'ReceivedPayload',

# Sent
"EventData",
'EventData',

"SentPayloadOp",
"SentPayload",
'SentPayloadOp',
'SentPayload',

# Final
"PayloadHandlers",
"Payload",
'PayloadHandlers',
'Payload',
)


Expand Down
2 changes: 1 addition & 1 deletion tests/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async def main() -> None:
await bot.load_extension('jishaku')
await bot.add_cog(Music(bot))

await bot.start(token="")
await bot.start(token='')


asyncio.run(main())

0 comments on commit 6612696

Please sign in to comment.