Skip to content

Commit bf64edf

Browse files
committed
Apply black code formatter
1 parent 7ab47a4 commit bf64edf

File tree

13 files changed

+15
-15
lines changed

13 files changed

+15
-15
lines changed

slack_bolt/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* GitHub repository: https://github.com/slackapi/bolt-python
66
* The class representing a Bolt app: `slack_bolt.app.app`
77
""" # noqa: E501
8+
89
# Don't add async module imports here
910
from .app import App
1011
from .context import BoltContext

slack_bolt/adapter/socket_mode/async_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Default implementation is the aiohttp-based one."""
2+
23
from .aiohttp import AsyncSocketModeHandler
34

45
__all__ = [

slack_bolt/async_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async def command(ack, body, respond):
4444
4545
Refer to `slack_bolt.app.async_app` for more details.
4646
""" # noqa: E501
47+
4748
from .app.async_app import AsyncApp
4849
from .context.ack.async_ack import AsyncAck
4950
from .context.async_context import AsyncBoltContext

slack_bolt/authorization/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Refer to https://slack.dev/bolt-python/concepts#authorization for details.
55
"""
6+
67
from .authorize_result import AuthorizeResult
78

89
__all__ = [

slack_bolt/context/async_context.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ async def handle_button_clicks(context):
155155
Callable `complete()` function
156156
"""
157157
if "complete" not in self:
158-
self["complete"] = AsyncComplete(
159-
client=self.client, function_execution_id=self.function_execution_id
160-
)
158+
self["complete"] = AsyncComplete(client=self.client, function_execution_id=self.function_execution_id)
161159
return self["complete"]
162160

163161
@property
@@ -181,7 +179,5 @@ async def handle_button_clicks(context):
181179
Callable `fail()` function
182180
"""
183181
if "fail" not in self:
184-
self["fail"] = AsyncFail(
185-
client=self.client, function_execution_id=self.function_execution_id
186-
)
182+
self["fail"] = AsyncFail(client=self.client, function_execution_id=self.function_execution_id)
187183
return self["fail"]

slack_bolt/context/context.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ def handle_button_clicks(context):
156156
Callable `complete()` function
157157
"""
158158
if "complete" not in self:
159-
self["complete"] = Complete(
160-
client=self.client, function_execution_id=self.function_execution_id
161-
)
159+
self["complete"] = Complete(client=self.client, function_execution_id=self.function_execution_id)
162160
return self["complete"]
163161

164162
@property
@@ -182,7 +180,5 @@ def handle_button_clicks(context):
182180
Callable `fail()` function
183181
"""
184182
if "fail" not in self:
185-
self["fail"] = Fail(
186-
client=self.client, function_execution_id=self.function_execution_id
187-
)
183+
self["fail"] = Fail(client=self.client, function_execution_id=self.function_execution_id)
188184
return self["fail"]

slack_bolt/error/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Bolt specific error types."""
2+
23
from typing import Optional, Union
34

45

slack_bolt/kwargs_injection/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(
119119
# the naming conflict with the built-in one affects
120120
# only the internals of this method
121121
next: Callable[[], None],
122-
**kwargs # noqa
122+
**kwargs, # noqa
123123
):
124124
self.logger: logging.Logger = logger
125125
self.client: WebClient = client

slack_bolt/kwargs_injection/async_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(
115115
complete: AsyncComplete,
116116
fail: AsyncFail,
117117
next: Callable[[], Awaitable[None]],
118-
**kwargs # noqa
118+
**kwargs, # noqa
119119
):
120120
self.logger: Logger = logger
121121
self.client: AsyncWebClient = client

slack_bolt/lazy_listener/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def run_long_process(respond, body):
2121
2222
Refer to https://slack.dev/bolt-python/concepts#lazy-listeners for more details.
2323
"""
24+
2425
# Don't add async module imports here
2526
from .runner import LazyListenerRunner
2627
from .thread_runner import ThreadLazyListenerRunner

0 commit comments

Comments
 (0)