Skip to content

Commit

Permalink
version 1.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Oct 29, 2021
1 parent f9c2819 commit e112c7e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 26 deletions.
23 changes: 13 additions & 10 deletions docs/api-docs/slack_bolt/app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ <h1 class="title">Module <code>slack_bolt.app.app</code></h1>
listener_executor: Custom executor to run background tasks. If absent, the default `ThreadPoolExecutor` will
be used.
&#34;&#34;&#34;
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;)
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;, &#34;&#34;)
token = token or os.environ.get(&#34;SLACK_BOT_TOKEN&#34;)

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

self._middleware_list: List[Union[Callable, Middleware]] = []
self._middleware_list: List[Middleware] = []
self._listeners: List[Listener] = []

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

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

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

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

self._middleware_list: List[Union[Callable, Middleware]] = []
self._middleware_list: List[Middleware] = []
self._listeners: List[Listener] = []

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

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

def middleware_next():
Expand Down Expand Up @@ -2096,7 +2097,8 @@ <h2 id="args">Args</h2>
if len(args) &gt; 0:
middleware_or_callable = args[0]
if isinstance(middleware_or_callable, Middleware):
self._middleware_list.append(middleware_or_callable)
middleware: Middleware = middleware_or_callable
self._middleware_list.append(middleware)
elif isinstance(middleware_or_callable, Callable):
self._middleware_list.append(
CustomMiddleware(app_name=self.name, func=middleware_or_callable)
Expand Down Expand Up @@ -3292,7 +3294,7 @@ <h2 id="returns">Returns</h2>
starting_time = time.time()
self._init_context(req)

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

def middleware_next():
Expand Down Expand Up @@ -3732,7 +3734,8 @@ <h2 id="args">Args</h2>
if len(args) &gt; 0:
middleware_or_callable = args[0]
if isinstance(middleware_or_callable, Middleware):
self._middleware_list.append(middleware_or_callable)
middleware: Middleware = middleware_or_callable
self._middleware_list.append(middleware)
elif isinstance(middleware_or_callable, Callable):
self._middleware_list.append(
CustomMiddleware(app_name=self.name, func=middleware_or_callable)
Expand Down
23 changes: 13 additions & 10 deletions docs/api-docs/slack_bolt/app/async_app.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h1 class="title">Module <code>slack_bolt.app.async_app</code></h1>
oauth_flow: Instantiated `slack_bolt.oauth.AsyncOAuthFlow`. This is always prioritized over oauth_settings.
verification_token: Deprecated verification mechanism. This can used only for ssl_check requests.
&#34;&#34;&#34;
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;)
signing_secret = signing_secret or os.environ.get(&#34;SLACK_SIGNING_SECRET&#34;, &#34;&#34;)
token = token or os.environ.get(&#34;SLACK_BOT_TOKEN&#34;)

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

self._async_middleware_list: List[Union[Callable, AsyncMiddleware]] = []
self._async_middleware_list: List[AsyncMiddleware] = []
self._async_listeners: List[AsyncListener] = []

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

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

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

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

self._async_middleware_list: List[Union[Callable, AsyncMiddleware]] = []
self._async_middleware_list: List[AsyncMiddleware] = []
self._async_listeners: List[AsyncListener] = []

self._process_before_response = process_before_response
Expand Down Expand Up @@ -1921,7 +1922,7 @@ <h2 id="args">Args</h2>
starting_time = time.time()
self._init_context(req)

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

async def async_middleware_next():
Expand Down Expand Up @@ -2057,7 +2058,8 @@ <h2 id="args">Args</h2>
if len(args) &gt; 0:
middleware_or_callable = args[0]
if isinstance(middleware_or_callable, AsyncMiddleware):
self._async_middleware_list.append(middleware_or_callable)
middleware: AsyncMiddleware = middleware_or_callable
self._async_middleware_list.append(middleware)
elif isinstance(middleware_or_callable, Callable):
self._async_middleware_list.append(
AsyncCustomMiddleware(
Expand Down Expand Up @@ -3005,7 +3007,7 @@ <h2 id="returns">Returns</h2>
starting_time = time.time()
self._init_context(req)

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

async def async_middleware_next():
Expand Down Expand Up @@ -3732,7 +3734,8 @@ <h2 id="args">Args</h2>
if len(args) &gt; 0:
middleware_or_callable = args[0]
if isinstance(middleware_or_callable, AsyncMiddleware):
self._async_middleware_list.append(middleware_or_callable)
middleware: AsyncMiddleware = middleware_or_callable
self._async_middleware_list.append(middleware)
elif isinstance(middleware_or_callable, Callable):
self._async_middleware_list.append(
AsyncCustomMiddleware(
Expand Down
4 changes: 2 additions & 2 deletions docs/api-docs/slack_bolt/app/async_server.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1 class="title">Module <code>slack_bolt.app.async_server</code></h1>
&#34;&#34;&#34;
self.port = port
self.path = path
self.bolt_app: &#34;AsyncApp&#34; = app
self.bolt_app: &#34;AsyncApp&#34; = app # type: ignore
self.web_app = web.Application()
self._bolt_oauth_flow = self.bolt_app.oauth_flow
if self._bolt_oauth_flow:
Expand Down Expand Up @@ -161,7 +161,7 @@ <h2 id="args">Args</h2>
&#34;&#34;&#34;
self.port = port
self.path = path
self.bolt_app: &#34;AsyncApp&#34; = app
self.bolt_app: &#34;AsyncApp&#34; = app # type: ignore
self.web_app = web.Application()
self._bolt_oauth_flow = self.bolt_app.oauth_flow
if self._bolt_oauth_flow:
Expand Down
4 changes: 2 additions & 2 deletions docs/api-docs/slack_bolt/authorization/async_authorize.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.async_authorize</code></
raise BoltError(self._config_error_message)
refreshed = await self.token_rotator.perform_token_rotation(
installation=installation,
token_rotation_expiration_minutes=self.token_rotation_expiration_minutes,
minutes_before_expiration=self.token_rotation_expiration_minutes,
)
if refreshed is not None:
await self.installation_store.async_save(refreshed)
Expand Down Expand Up @@ -569,7 +569,7 @@ <h3>Ancestors</h3>
raise BoltError(self._config_error_message)
refreshed = await self.token_rotator.perform_token_rotation(
installation=installation,
token_rotation_expiration_minutes=self.token_rotation_expiration_minutes,
minutes_before_expiration=self.token_rotation_expiration_minutes,
)
if refreshed is not None:
await self.installation_store.async_save(refreshed)
Expand Down
2 changes: 1 addition & 1 deletion docs/api-docs/slack_bolt/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_bolt.version</code></h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-bolt/&#34;&#34;&#34;
__version__ = &#34;1.9.3&#34;</code></pre>
__version__ = &#34;1.9.4&#34;</code></pre>
</details>
</section>
<section>
Expand Down
2 changes: 1 addition & 1 deletion slack_bolt/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
__version__ = "1.9.3"
__version__ = "1.9.4"

0 comments on commit e112c7e

Please sign in to comment.