Skip to content

Commit db99b51

Browse files
make things alphabet
1 parent eda8e73 commit db99b51

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

slack_bolt/context/say_stream/async_say_stream.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
class AsyncSayStream:
1111
client: AsyncWebClient
1212
channel: Optional[str]
13-
thread_ts: Optional[str]
1413
recipient_team_id: Optional[str]
1514
recipient_user_id: Optional[str]
15+
thread_ts: Optional[str]
1616

1717
def __init__(
1818
self,
1919
*,
2020
client: AsyncWebClient,
2121
channel: Optional[str] = None,
22-
thread_ts: Optional[str] = None,
2322
recipient_team_id: Optional[str] = None,
2423
recipient_user_id: Optional[str] = None,
24+
thread_ts: Optional[str] = None,
2525
):
2626
self.client = client
2727
self.channel = channel
28-
self.thread_ts = thread_ts
2928
self.recipient_team_id = recipient_team_id
3029
self.recipient_user_id = recipient_user_id
30+
self.thread_ts = thread_ts
3131

3232
async def __call__(
3333
self,
@@ -54,17 +54,17 @@ async def __call__(
5454

5555
if buffer_size is not None:
5656
return await self.client.chat_stream(
57-
channel=channel,
58-
thread_ts=thread_ts,
5957
buffer_size=buffer_size,
58+
channel=channel,
6059
recipient_team_id=recipient_team_id or self.recipient_team_id,
6160
recipient_user_id=recipient_user_id or self.recipient_user_id,
61+
thread_ts=thread_ts,
6262
**kwargs,
6363
)
6464
return await self.client.chat_stream(
6565
channel=channel,
66-
thread_ts=thread_ts,
6766
recipient_team_id=recipient_team_id or self.recipient_team_id,
6867
recipient_user_id=recipient_user_id or self.recipient_user_id,
68+
thread_ts=thread_ts,
6969
**kwargs,
7070
)

slack_bolt/context/say_stream/say_stream.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
class SayStream:
1111
client: WebClient
1212
channel: Optional[str]
13-
thread_ts: Optional[str]
1413
recipient_team_id: Optional[str]
1514
recipient_user_id: Optional[str]
15+
thread_ts: Optional[str]
1616

1717
def __init__(
1818
self,
1919
*,
2020
client: WebClient,
2121
channel: Optional[str] = None,
22-
thread_ts: Optional[str] = None,
2322
recipient_team_id: Optional[str] = None,
2423
recipient_user_id: Optional[str] = None,
24+
thread_ts: Optional[str] = None,
2525
):
2626
self.client = client
2727
self.channel = channel
28-
self.thread_ts = thread_ts
2928
self.recipient_team_id = recipient_team_id
3029
self.recipient_user_id = recipient_user_id
30+
self.thread_ts = thread_ts
3131

3232
def __call__(
3333
self,
@@ -54,17 +54,17 @@ def __call__(
5454

5555
if buffer_size is not None:
5656
return self.client.chat_stream(
57-
channel=channel,
58-
thread_ts=thread_ts,
5957
buffer_size=buffer_size,
58+
channel=channel,
6059
recipient_team_id=recipient_team_id or self.recipient_team_id,
6160
recipient_user_id=recipient_user_id or self.recipient_user_id,
61+
thread_ts=thread_ts,
6262
**kwargs,
6363
)
6464
return self.client.chat_stream(
6565
channel=channel,
66-
thread_ts=thread_ts,
6766
recipient_team_id=recipient_team_id or self.recipient_team_id,
6867
recipient_user_id=recipient_user_id or self.recipient_user_id,
68+
thread_ts=thread_ts,
6969
**kwargs,
7070
)

slack_bolt/middleware/attaching_agent_kwargs/async_attaching_agent_kwargs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ async def async_process(
4444
req.context["say_stream"] = AsyncSayStream(
4545
client=req.context.client,
4646
channel=req.context.channel_id,
47-
thread_ts=thread_ts,
4847
recipient_team_id=req.context.team_id,
4948
recipient_user_id=req.context.user_id,
49+
thread_ts=thread_ts,
5050
)
5151
return await next()

slack_bolt/middleware/attaching_agent_kwargs/attaching_agent_kwargs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def process(self, *, req: BoltRequest, resp: BoltResponse, next: Callable[[], Bo
3838
req.context["say_stream"] = SayStream(
3939
client=req.context.client,
4040
channel=req.context.channel_id,
41-
thread_ts=thread_ts,
4241
recipient_team_id=req.context.team_id,
4342
recipient_user_id=req.context.user_id,
43+
thread_ts=thread_ts,
4444
)
4545
return next()

tests/slack_bolt/context/test_say_stream.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def test_default_params(self):
3434
say_stream = SayStream(
3535
client=self.web_client,
3636
channel="C111",
37-
thread_ts="111.222",
3837
recipient_team_id="T111",
3938
recipient_user_id="U111",
39+
thread_ts="111.222",
4040
)
4141
stream = say_stream()
4242

@@ -53,9 +53,9 @@ def test_parameter_overrides(self):
5353
say_stream = SayStream(
5454
client=self.web_client,
5555
channel="C111",
56-
thread_ts="111.222",
5756
recipient_team_id="T111",
5857
recipient_user_id="U111",
58+
thread_ts="111.222",
5959
)
6060
stream = say_stream(channel="C222", thread_ts="333.444", recipient_team_id="T222", recipient_user_id="U222")
6161

@@ -72,9 +72,9 @@ def test_buffer_size_overrides(self):
7272
say_stream = SayStream(
7373
client=self.web_client,
7474
channel="C111",
75-
thread_ts="111.222",
7675
recipient_team_id="T111",
7776
recipient_user_id="U111",
77+
thread_ts="111.222",
7878
)
7979
stream = say_stream(
8080
buffer_size=100,

tests/slack_bolt_async/context/test_async_say_stream.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ async def test_default_params(self):
4545
say_stream = AsyncSayStream(
4646
client=self.web_client,
4747
channel="C111",
48-
thread_ts="111.222",
4948
recipient_team_id="T111",
5049
recipient_user_id="U111",
50+
thread_ts="111.222",
5151
)
5252
stream = await say_stream()
5353

@@ -65,9 +65,9 @@ async def test_parameter_overrides(self):
6565
say_stream = AsyncSayStream(
6666
client=self.web_client,
6767
channel="C111",
68-
thread_ts="111.222",
6968
recipient_team_id="T111",
7069
recipient_user_id="U111",
70+
thread_ts="111.222",
7171
)
7272
stream = await say_stream(channel="C222", thread_ts="333.444", recipient_team_id="T222", recipient_user_id="U222")
7373

@@ -85,9 +85,9 @@ async def test_buffer_size_overrides(self):
8585
say_stream = AsyncSayStream(
8686
client=self.web_client,
8787
channel="C111",
88-
thread_ts="111.222",
8988
recipient_team_id="T111",
9089
recipient_user_id="U111",
90+
thread_ts="111.222",
9191
)
9292
stream = await say_stream(
9393
buffer_size=100,

0 commit comments

Comments
 (0)