Skip to content

Commit fe40900

Browse files
committed
docs: match async setups in testing
1 parent af7bea2 commit fe40900

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

scripts/codegen.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
)
5555
async_source = re.sub(r"ChatStream:", "AsyncChatStream:", async_source)
5656
async_source = re.sub(r"ChatStream\(", "AsyncChatStream(", async_source)
57+
async_source = re.sub(
58+
r" client.chat_stream\(",
59+
" await client.chat_stream(",
60+
async_source,
61+
)
5762
async_source = re.sub(
5863
r" streamer.append\(",
5964
" await streamer.append(",

slack_sdk/web/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2939,7 +2939,7 @@ async def chat_stream(
29392939
29402940
Example:
29412941
```python
2942-
streamer = client.chat_stream(
2942+
streamer = await client.chat_stream(
29432943
channel="C0123456789",
29442944
thread_ts="1700000001.123456",
29452945
recipient_team_id="T0123456789",

0 commit comments

Comments
 (0)