Skip to content

Commit cc453e5

Browse files
Copilotkaneryu
andcommitted
Format code with black
Co-authored-by: kaneryu <72762358+kaneryu@users.noreply.github.com>
1 parent 18b0116 commit cc453e5

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

pypresence/baseclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class BaseClient:
3939
loop : asyncio.BaseEventLoop, optional
4040
Your own event loop (if you have one) that PyPresence should use. One will be created if not supplied.
4141
handler : function, optional
42-
The exception handler pypresence should send asynchronous errors to. This can be a coroutine or
42+
The exception handler pypresence should send asynchronous errors to. This can be a coroutine or
4343
standard function as long as it takes two arguments (exception, future).
4444
isasync : bool, optional
4545
Whether this is an async client. Defaults to False.

pypresence/client.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class Client(BaseClient):
3636
Your own event loop (if you have one) that PyPresence should use. One will be created if not supplied.
3737
Information at https://docs.python.org/3/library/asyncio-eventloop.html
3838
handler : function, optional
39-
The exception handler pypresence should send asynchronous errors to. This can be a coroutine or
40-
standard function as long as it takes two arguments (exception, future). Exception will be the
39+
The exception handler pypresence should send asynchronous errors to. This can be a coroutine or
40+
standard function as long as it takes two arguments (exception, future). Exception will be the
4141
exception to handle and future will be an instance of asyncio.Future
4242
4343
Examples
@@ -47,6 +47,7 @@ class Client(BaseClient):
4747
>>> RPC.start()
4848
>>> RPC.set_activity(state="Playing a game", details="In the main menu")
4949
"""
50+
5051
def __init__(self, *args, **kwargs):
5152
super().__init__(*args, **kwargs)
5253
self._closed = False
@@ -165,7 +166,7 @@ def authorize(self, client_id: str, scopes: List[str]):
165166
client_id : str
166167
OAuth2 application id
167168
scopes : list of str
168-
A list of OAuth scopes as strings.
169+
A list of OAuth scopes as strings.
169170
All scopes can be found at https://discord.com/developers/docs/topics/oauth2
170171
171172
Returns
@@ -423,7 +424,7 @@ def set_activity(
423424
match : str, optional
424425
Unique hashed string for spectate and join
425426
buttons : list, optional
426-
List of dicts for buttons on your profile in the format [{"label": "My Website", "url": "https://example.com"}, ...],
427+
List of dicts for buttons on your profile in the format [{"label": "My Website", "url": "https://example.com"}, ...],
427428
can list up to two buttons
428429
instance : bool, optional
429430
Marks the match as a game session with a specific beginning and end. Defaults to True.
@@ -712,7 +713,7 @@ class AioClient(BaseClient):
712713
Information at https://docs.python.org/3/library/asyncio-eventloop.html
713714
handler : function, optional
714715
The exception handler pypresence should send asynchronous errors to. This must be a coroutine
715-
that takes two arguments (exception, future). Exception will be the exception to handle and
716+
that takes two arguments (exception, future). Exception will be the exception to handle and
716717
future will be an instance of asyncio.Future
717718
718719
Examples
@@ -726,6 +727,7 @@ class AioClient(BaseClient):
726727
... RPC.close()
727728
>>> asyncio.run(main())
728729
"""
730+
729731
def __init__(self, *args, **kwargs):
730732
super().__init__(*args, **kwargs, isasync=True)
731733
self._closed = False

pypresence/presence.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class Presence(BaseClient):
2525
Your own event loop (if you have one) that PyPresence should use. One will be created if not supplied.
2626
Information at https://docs.python.org/3/library/asyncio-eventloop.html
2727
handler : function, optional
28-
The exception handler pypresence should send asynchronous errors to. This can be a coroutine or
29-
standard function as long as it takes two arguments (exception, future). Exception will be the
28+
The exception handler pypresence should send asynchronous errors to. This can be a coroutine or
29+
standard function as long as it takes two arguments (exception, future). Exception will be the
3030
exception to handle and future will be an instance of asyncio.Future
3131
3232
Examples
@@ -117,7 +117,7 @@ def update(
117117
match : str, optional
118118
Unique hashed string for spectate and join
119119
buttons : list, optional
120-
List of dicts for buttons on your profile in the format [{"label": "My Website", "url": "https://example.com"}, ...],
120+
List of dicts for buttons on your profile in the format [{"label": "My Website", "url": "https://example.com"}, ...],
121121
can list up to two buttons
122122
instance : bool, optional
123123
Marks the match as a game session with a specific beginning and end. Defaults to True.
@@ -230,7 +230,7 @@ class AioPresence(BaseClient):
230230
Information at https://docs.python.org/3/library/asyncio-eventloop.html
231231
handler : function, optional
232232
The exception handler pypresence should send asynchronous errors to. This must be a coroutine
233-
that takes two arguments (exception, future). Exception will be the exception to handle and
233+
that takes two arguments (exception, future). Exception will be the exception to handle and
234234
future will be an instance of asyncio.Future
235235
236236
Examples
@@ -324,7 +324,7 @@ async def update(
324324
match : str, optional
325325
Unique hashed string for spectate and join
326326
buttons : list, optional
327-
List of dicts for buttons on your profile in the format [{"label": "My Website", "url": "https://example.com"}, ...],
327+
List of dicts for buttons on your profile in the format [{"label": "My Website", "url": "https://example.com"}, ...],
328328
can list up to two buttons
329329
instance : bool, optional
330330
Marks the match as a game session with a specific beginning and end. Defaults to True.

0 commit comments

Comments
 (0)