Skip to content

Commit c927b2c

Browse files
committed
style: apply ruff formatting to chat upload clients
Format sync and async chat client upload helpers so Ruff format check passes in CI. Made-with: Cursor
1 parent 6de7e2c commit c927b2c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

getstream/chat/async_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ async def upload_channel_image(
6262
if kwargs:
6363
raise TypeError(f"Unexpected keyword arguments: {', '.join(kwargs.keys())}")
6464
if channel_type is None:
65-
raise TypeError("upload_channel_image() missing required argument: 'channel_type'")
65+
raise TypeError(
66+
"upload_channel_image() missing required argument: 'channel_type'"
67+
)
6668
if id is None:
6769
raise TypeError("upload_channel_image() missing required argument: 'id'")
6870
if file is None:

getstream/chat/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def upload_channel_image(
6262
if kwargs:
6363
raise TypeError(f"Unexpected keyword arguments: {', '.join(kwargs.keys())}")
6464
if channel_type is None:
65-
raise TypeError("upload_channel_image() missing required argument: 'channel_type'")
65+
raise TypeError(
66+
"upload_channel_image() missing required argument: 'channel_type'"
67+
)
6668
if id is None:
6769
raise TypeError("upload_channel_image() missing required argument: 'id'")
6870
if file is None:

0 commit comments

Comments
 (0)