Skip to content

Commit e112c7e

Browse files
committed
version 1.9.4
1 parent f9c2819 commit e112c7e

6 files changed

Lines changed: 32 additions & 26 deletions

File tree

docs/api-docs/slack_bolt/app/app.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ <h1 class="title">Module <code>slack_bolt.app.app</code></h1>
207207
listener_executor: Custom executor to run background tasks. If absent, the default `ThreadPoolExecutor` will
208208
be used.
209209
&#34;&#34;&#34;
210-
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;)
210+
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;, &#34;&#34;)
211211
token = token or os.environ.get(&#34;SLACK_BOT_TOKEN&#34;)
212212

213213
self._name: str = name or inspect.stack()[1].filename.split(os.path.sep)[-1]
@@ -332,7 +332,7 @@ <h1 class="title">Module <code>slack_bolt.app.app</code></h1>
332332
# Middleware Initialization
333333
# --------------------------------------
334334

335-
self._middleware_list: List[Union[Callable, Middleware]] = []
335+
self._middleware_list: List[Middleware] = []
336336
self._listeners: List[Listener] = []
337337

338338
if listener_executor is None:
@@ -497,7 +497,7 @@ <h1 class="title">Module <code>slack_bolt.app.app</code></h1>
497497
starting_time = time.time()
498498
self._init_context(req)
499499

500-
resp: BoltResponse = BoltResponse(status=200, body=&#34;&#34;)
500+
resp: Optional[BoltResponse] = BoltResponse(status=200, body=&#34;&#34;)
501501
middleware_state = {&#34;next_called&#34;: False}
502502

503503
def middleware_next():
@@ -635,7 +635,8 @@ <h1 class="title">Module <code>slack_bolt.app.app</code></h1>
635635
if len(args) &gt; 0:
636636
middleware_or_callable = args[0]
637637
if isinstance(middleware_or_callable, Middleware):
638-
self._middleware_list.append(middleware_or_callable)
638+
middleware: Middleware = middleware_or_callable
639+
self._middleware_list.append(middleware)
639640
elif isinstance(middleware_or_callable, Callable):
640641
self._middleware_list.append(
641642
CustomMiddleware(app_name=self.name, func=middleware_or_callable)
@@ -1668,7 +1669,7 @@ <h2 id="args">Args</h2>
16681669
listener_executor: Custom executor to run background tasks. If absent, the default `ThreadPoolExecutor` will
16691670
be used.
16701671
&#34;&#34;&#34;
1671-
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;)
1672+
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;, &#34;&#34;)
16721673
token = token or os.environ.get(&#34;SLACK_BOT_TOKEN&#34;)
16731674

16741675
self._name: str = name or inspect.stack()[1].filename.split(os.path.sep)[-1]
@@ -1793,7 +1794,7 @@ <h2 id="args">Args</h2>
17931794
# Middleware Initialization
17941795
# --------------------------------------
17951796

1796-
self._middleware_list: List[Union[Callable, Middleware]] = []
1797+
self._middleware_list: List[Middleware] = []
17971798
self._listeners: List[Listener] = []
17981799

17991800
if listener_executor is None:
@@ -1958,7 +1959,7 @@ <h2 id="args">Args</h2>
19581959
starting_time = time.time()
19591960
self._init_context(req)
19601961

1961-
resp: BoltResponse = BoltResponse(status=200, body=&#34;&#34;)
1962+
resp: Optional[BoltResponse] = BoltResponse(status=200, body=&#34;&#34;)
19621963
middleware_state = {&#34;next_called&#34;: False}
19631964

19641965
def middleware_next():
@@ -2096,7 +2097,8 @@ <h2 id="args">Args</h2>
20962097
if len(args) &gt; 0:
20972098
middleware_or_callable = args[0]
20982099
if isinstance(middleware_or_callable, Middleware):
2099-
self._middleware_list.append(middleware_or_callable)
2100+
middleware: Middleware = middleware_or_callable
2101+
self._middleware_list.append(middleware)
21002102
elif isinstance(middleware_or_callable, Callable):
21012103
self._middleware_list.append(
21022104
CustomMiddleware(app_name=self.name, func=middleware_or_callable)
@@ -3292,7 +3294,7 @@ <h2 id="returns">Returns</h2>
32923294
starting_time = time.time()
32933295
self._init_context(req)
32943296

3295-
resp: BoltResponse = BoltResponse(status=200, body=&#34;&#34;)
3297+
resp: Optional[BoltResponse] = BoltResponse(status=200, body=&#34;&#34;)
32963298
middleware_state = {&#34;next_called&#34;: False}
32973299

32983300
def middleware_next():
@@ -3732,7 +3734,8 @@ <h2 id="args">Args</h2>
37323734
if len(args) &gt; 0:
37333735
middleware_or_callable = args[0]
37343736
if isinstance(middleware_or_callable, Middleware):
3735-
self._middleware_list.append(middleware_or_callable)
3737+
middleware: Middleware = middleware_or_callable
3738+
self._middleware_list.append(middleware)
37363739
elif isinstance(middleware_or_callable, Callable):
37373740
self._middleware_list.append(
37383741
CustomMiddleware(app_name=self.name, func=middleware_or_callable)

docs/api-docs/slack_bolt/app/async_app.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ <h1 class="title">Module <code>slack_bolt.app.async_app</code></h1>
211211
oauth_flow: Instantiated `slack_bolt.oauth.AsyncOAuthFlow`. This is always prioritized over oauth_settings.
212212
verification_token: Deprecated verification mechanism. This can used only for ssl_check requests.
213213
&#34;&#34;&#34;
214-
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;)
214+
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;, &#34;&#34;)
215215
token = token or os.environ.get(&#34;SLACK_BOT_TOKEN&#34;)
216216

217217
self._name: str = name or inspect.stack()[1].filename.split(os.path.sep)[-1]
@@ -355,7 +355,7 @@ <h1 class="title">Module <code>slack_bolt.app.async_app</code></h1>
355355
# Middleware Initialization
356356
# --------------------------------------
357357

358-
self._async_middleware_list: List[Union[Callable, AsyncMiddleware]] = []
358+
self._async_middleware_list: List[AsyncMiddleware] = []
359359
self._async_listeners: List[AsyncListener] = []
360360

361361
self._process_before_response = process_before_response
@@ -534,7 +534,7 @@ <h1 class="title">Module <code>slack_bolt.app.async_app</code></h1>
534534
starting_time = time.time()
535535
self._init_context(req)
536536

537-
resp: BoltResponse = BoltResponse(status=200, body=&#34;&#34;)
537+
resp: Optional[BoltResponse] = BoltResponse(status=200, body=&#34;&#34;)
538538
middleware_state = {&#34;next_called&#34;: False}
539539

540540
async def async_middleware_next():
@@ -670,7 +670,8 @@ <h1 class="title">Module <code>slack_bolt.app.async_app</code></h1>
670670
if len(args) &gt; 0:
671671
middleware_or_callable = args[0]
672672
if isinstance(middleware_or_callable, AsyncMiddleware):
673-
self._async_middleware_list.append(middleware_or_callable)
673+
middleware: AsyncMiddleware = middleware_or_callable
674+
self._async_middleware_list.append(middleware)
674675
elif isinstance(middleware_or_callable, Callable):
675676
self._async_middleware_list.append(
676677
AsyncCustomMiddleware(
@@ -1598,7 +1599,7 @@ <h2 id="args">Args</h2>
15981599
oauth_flow: Instantiated `slack_bolt.oauth.AsyncOAuthFlow`. This is always prioritized over oauth_settings.
15991600
verification_token: Deprecated verification mechanism. This can used only for ssl_check requests.
16001601
&#34;&#34;&#34;
1601-
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;)
1602+
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;, &#34;&#34;)
16021603
token = token or os.environ.get(&#34;SLACK_BOT_TOKEN&#34;)
16031604

16041605
self._name: str = name or inspect.stack()[1].filename.split(os.path.sep)[-1]
@@ -1742,7 +1743,7 @@ <h2 id="args">Args</h2>
17421743
# Middleware Initialization
17431744
# --------------------------------------
17441745

1745-
self._async_middleware_list: List[Union[Callable, AsyncMiddleware]] = []
1746+
self._async_middleware_list: List[AsyncMiddleware] = []
17461747
self._async_listeners: List[AsyncListener] = []
17471748

17481749
self._process_before_response = process_before_response
@@ -1921,7 +1922,7 @@ <h2 id="args">Args</h2>
19211922
starting_time = time.time()
19221923
self._init_context(req)
19231924

1924-
resp: BoltResponse = BoltResponse(status=200, body=&#34;&#34;)
1925+
resp: Optional[BoltResponse] = BoltResponse(status=200, body=&#34;&#34;)
19251926
middleware_state = {&#34;next_called&#34;: False}
19261927

19271928
async def async_middleware_next():
@@ -2057,7 +2058,8 @@ <h2 id="args">Args</h2>
20572058
if len(args) &gt; 0:
20582059
middleware_or_callable = args[0]
20592060
if isinstance(middleware_or_callable, AsyncMiddleware):
2060-
self._async_middleware_list.append(middleware_or_callable)
2061+
middleware: AsyncMiddleware = middleware_or_callable
2062+
self._async_middleware_list.append(middleware)
20612063
elif isinstance(middleware_or_callable, Callable):
20622064
self._async_middleware_list.append(
20632065
AsyncCustomMiddleware(
@@ -3005,7 +3007,7 @@ <h2 id="returns">Returns</h2>
30053007
starting_time = time.time()
30063008
self._init_context(req)
30073009

3008-
resp: BoltResponse = BoltResponse(status=200, body=&#34;&#34;)
3010+
resp: Optional[BoltResponse] = BoltResponse(status=200, body=&#34;&#34;)
30093011
middleware_state = {&#34;next_called&#34;: False}
30103012

30113013
async def async_middleware_next():
@@ -3732,7 +3734,8 @@ <h2 id="args">Args</h2>
37323734
if len(args) &gt; 0:
37333735
middleware_or_callable = args[0]
37343736
if isinstance(middleware_or_callable, AsyncMiddleware):
3735-
self._async_middleware_list.append(middleware_or_callable)
3737+
middleware: AsyncMiddleware = middleware_or_callable
3738+
self._async_middleware_list.append(middleware)
37363739
elif isinstance(middleware_or_callable, Callable):
37373740
self._async_middleware_list.append(
37383741
AsyncCustomMiddleware(

docs/api-docs/slack_bolt/app/async_server.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h1 class="title">Module <code>slack_bolt.app.async_server</code></h1>
5757
&#34;&#34;&#34;
5858
self.port = port
5959
self.path = path
60-
self.bolt_app: &#34;AsyncApp&#34; = app
60+
self.bolt_app: &#34;AsyncApp&#34; = app # type: ignore
6161
self.web_app = web.Application()
6262
self._bolt_oauth_flow = self.bolt_app.oauth_flow
6363
if self._bolt_oauth_flow:
@@ -161,7 +161,7 @@ <h2 id="args">Args</h2>
161161
&#34;&#34;&#34;
162162
self.port = port
163163
self.path = path
164-
self.bolt_app: &#34;AsyncApp&#34; = app
164+
self.bolt_app: &#34;AsyncApp&#34; = app # type: ignore
165165
self.web_app = web.Application()
166166
self._bolt_oauth_flow = self.bolt_app.oauth_flow
167167
if self._bolt_oauth_flow:

docs/api-docs/slack_bolt/authorization/async_authorize.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.async_authorize</code></
237237
raise BoltError(self._config_error_message)
238238
refreshed = await self.token_rotator.perform_token_rotation(
239239
installation=installation,
240-
token_rotation_expiration_minutes=self.token_rotation_expiration_minutes,
240+
minutes_before_expiration=self.token_rotation_expiration_minutes,
241241
)
242242
if refreshed is not None:
243243
await self.installation_store.async_save(refreshed)
@@ -569,7 +569,7 @@ <h3>Ancestors</h3>
569569
raise BoltError(self._config_error_message)
570570
refreshed = await self.token_rotator.perform_token_rotation(
571571
installation=installation,
572-
token_rotation_expiration_minutes=self.token_rotation_expiration_minutes,
572+
minutes_before_expiration=self.token_rotation_expiration_minutes,
573573
)
574574
if refreshed is not None:
575575
await self.installation_store.async_save(refreshed)

docs/api-docs/slack_bolt/version.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_bolt.version</code></h1>
2828
<span>Expand source code</span>
2929
</summary>
3030
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-bolt/&#34;&#34;&#34;
31-
__version__ = &#34;1.9.3&#34;</code></pre>
31+
__version__ = &#34;1.9.4&#34;</code></pre>
3232
</details>
3333
</section>
3434
<section>

slack_bolt/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
2-
__version__ = "1.9.3"
2+
__version__ = "1.9.4"

0 commit comments

Comments
 (0)