Skip to content

Commit

Permalink
version 1.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jul 26, 2022
1 parent 656ce6f commit 5ec8e15
Show file tree
Hide file tree
Showing 27 changed files with 102 additions and 84 deletions.
2 changes: 1 addition & 1 deletion docs/api-docs/slack_bolt/async_app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3508,7 +3508,7 @@ <h3>Methods</h3>
def __init__(self, *, app_name: str, func: Callable[..., Awaitable[bool]], base_logger: Optional[Logger] = None):
self.app_name = app_name
self.func = func
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)
self.logger = get_bolt_app_logger(self.app_name, self.func, base_logger)

async def async_matches(self, req: AsyncBoltRequest, resp: BoltResponse) -&gt; bool:
Expand Down
8 changes: 4 additions & 4 deletions docs/api-docs/slack_bolt/authorization/async_authorize.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.async_authorize</code></
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from logging import Logger
<pre><code class="python">from logging import Logger
from typing import Optional, Callable, Awaitable, Dict, Any

from slack_sdk.errors import SlackApiError
Expand All @@ -42,6 +41,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.async_authorize</code></
from slack_bolt.authorization import AuthorizeResult
from slack_bolt.context.async_context import AsyncBoltContext
from slack_bolt.error import BoltError
from slack_bolt.util.utils import get_arg_names_of_callable


class AsyncAuthorize:
Expand Down Expand Up @@ -70,7 +70,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.async_authorize</code></
def __init__(self, *, logger: Logger, func: Callable[..., Awaitable[AuthorizeResult]]):
self.logger = logger
self.func = func
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

async def __call__(
self,
Expand Down Expand Up @@ -395,7 +395,7 @@ <h3>Subclasses</h3>
def __init__(self, *, logger: Logger, func: Callable[..., Awaitable[AuthorizeResult]]):
self.logger = logger
self.func = func
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

async def __call__(
self,
Expand Down
8 changes: 4 additions & 4 deletions docs/api-docs/slack_bolt/authorization/authorize.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.authorize</code></h1>
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from logging import Logger
<pre><code class="python">from logging import Logger
from typing import Optional, Callable, Dict, Any

from slack_sdk.errors import SlackApiError
Expand All @@ -41,6 +40,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.authorize</code></h1>
from slack_bolt.authorization.authorize_result import AuthorizeResult
from slack_bolt.context.context import BoltContext
from slack_bolt.error import BoltError
from slack_bolt.util.utils import get_arg_names_of_callable


class Authorize:
Expand Down Expand Up @@ -74,7 +74,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.authorize</code></h1>
):
self.logger = logger
self.func = func
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

def __call__(
self,
Expand Down Expand Up @@ -400,7 +400,7 @@ <h3>Subclasses</h3>
):
self.logger = logger
self.func = func
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

def __call__(
self,
Expand Down
2 changes: 1 addition & 1 deletion docs/api-docs/slack_bolt/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3771,7 +3771,7 @@ <h3>Methods</h3>
def __init__(self, *, app_name: str, func: Callable[..., bool], base_logger: Optional[Logger] = None):
self.app_name = app_name
self.func = func
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)
self.logger = get_bolt_app_logger(self.app_name, self.func, base_logger)

def matches(self, req: BoltRequest, resp: BoltResponse) -&gt; bool:
Expand Down
8 changes: 4 additions & 4 deletions docs/api-docs/slack_bolt/lazy_listener/async_internals.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ <h1 class="title">Module <code>slack_bolt.lazy_listener.async_internals</code></
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from functools import wraps
<pre><code class="python">from functools import wraps
from logging import Logger
from typing import Callable, Awaitable

from slack_bolt.kwargs_injection.async_utils import build_async_required_kwargs
from slack_bolt.request.async_request import AsyncBoltRequest
from slack_bolt.util.utils import get_arg_names_of_callable


async def to_runnable_function(
internal_func: Callable[..., Awaitable[None]],
logger: Logger,
request: AsyncBoltRequest,
):
arg_names = inspect.getfullargspec(internal_func).args
arg_names = get_arg_names_of_callable(internal_func)

@wraps(internal_func)
async def request_wired_wrapper() -&gt; None:
Expand Down Expand Up @@ -81,7 +81,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
logger: Logger,
request: AsyncBoltRequest,
):
arg_names = inspect.getfullargspec(internal_func).args
arg_names = get_arg_names_of_callable(internal_func)

@wraps(internal_func)
async def request_wired_wrapper() -&gt; None:
Expand Down
8 changes: 4 additions & 4 deletions docs/api-docs/slack_bolt/lazy_listener/internals.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ <h1 class="title">Module <code>slack_bolt.lazy_listener.internals</code></h1>
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from functools import wraps
<pre><code class="python">from functools import wraps
from logging import Logger
from typing import Callable

from slack_bolt.kwargs_injection import build_required_kwargs
from slack_bolt.request import BoltRequest
from slack_bolt.util.utils import get_arg_names_of_callable


def build_runnable_function(
func: Callable[..., None],
logger: Logger,
request: BoltRequest,
) -&gt; Callable[[], None]:
arg_names = inspect.getfullargspec(func).args
arg_names = get_arg_names_of_callable(func)

@wraps(func)
def request_wired_func_wrapper() -&gt; None:
Expand Down Expand Up @@ -81,7 +81,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
logger: Logger,
request: BoltRequest,
) -&gt; Callable[[], None]:
arg_names = inspect.getfullargspec(func).args
arg_names = get_arg_names_of_callable(func)

@wraps(func)
def request_wired_func_wrapper() -&gt; None:
Expand Down
8 changes: 4 additions & 4 deletions docs/api-docs/slack_bolt/listener/async_listener.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener</code></h1>
from slack_bolt.request.async_request import AsyncBoltRequest
from slack_bolt.response import BoltResponse
from ..kwargs_injection.async_utils import build_async_required_kwargs
from ..util.utils import get_arg_names_of_callable


class AsyncListener(metaclass=ABCMeta):
Expand Down Expand Up @@ -97,7 +98,6 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener</code></h1>
raise NotImplementedError()


import inspect
from logging import Logger
from typing import Callable, Awaitable

Expand Down Expand Up @@ -135,7 +135,7 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener</code></h1>
self.matchers = matchers
self.middleware = middleware
self.auto_acknowledgement = auto_acknowledgement
self.arg_names = inspect.getfullargspec(ack_function).args
self.arg_names = get_arg_names_of_callable(ack_function)
self.logger = get_bolt_app_logger(app_name, self.ack_function, base_logger)

async def run_ack_function(
Expand Down Expand Up @@ -208,7 +208,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self.matchers = matchers
self.middleware = middleware
self.auto_acknowledgement = auto_acknowledgement
self.arg_names = inspect.getfullargspec(ack_function).args
self.arg_names = get_arg_names_of_callable(ack_function)
self.logger = get_bolt_app_logger(app_name, self.ack_function, base_logger)

async def run_ack_function(
Expand Down Expand Up @@ -342,7 +342,7 @@ <h2 id="returns">Returns</h2>
self.matchers = matchers
self.middleware = middleware
self.auto_acknowledgement = auto_acknowledgement
self.arg_names = inspect.getfullargspec(ack_function).args
self.arg_names = get_arg_names_of_callable(ack_function)
self.logger = get_bolt_app_logger(app_name, self.ack_function, base_logger)

async def run_ack_function(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_completion_han
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from abc import ABCMeta, abstractmethod
<pre><code class="python">from abc import ABCMeta, abstractmethod
from logging import Logger
from typing import Callable, Dict, Any, Awaitable, Optional

from slack_bolt.kwargs_injection.async_utils import build_async_required_kwargs
from slack_bolt.request.async_request import AsyncBoltRequest
from slack_bolt.response import BoltResponse
from slack_bolt.util.utils import get_arg_names_of_callable


class AsyncListenerCompletionHandler(metaclass=ABCMeta):
Expand All @@ -56,7 +56,7 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_completion_han
def __init__(self, logger: Logger, func: Callable[..., Awaitable[None]]):
self.func = func
self.logger = logger
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

async def handle(
self,
Expand Down Expand Up @@ -108,7 +108,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def __init__(self, logger: Logger, func: Callable[..., Awaitable[None]]):
self.func = func
self.logger = logger
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

async def handle(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_error_handler<
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from abc import ABCMeta, abstractmethod
<pre><code class="python">from abc import ABCMeta, abstractmethod
from logging import Logger
from typing import Callable, Dict, Any, Awaitable, Optional

from slack_bolt.kwargs_injection.async_utils import build_async_required_kwargs
from slack_bolt.request.async_request import AsyncBoltRequest
from slack_bolt.response import BoltResponse
from slack_bolt.util.utils import get_arg_names_of_callable


class AsyncListenerErrorHandler(metaclass=ABCMeta):
Expand All @@ -58,7 +58,7 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_error_handler<
def __init__(self, logger: Logger, func: Callable[..., Awaitable[Optional[BoltResponse]]]):
self.func = func
self.logger = logger
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

async def handle(
self,
Expand Down Expand Up @@ -118,7 +118,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def __init__(self, logger: Logger, func: Callable[..., Awaitable[Optional[BoltResponse]]]):
self.func = func
self.logger = logger
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

async def handle(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_start_handler<
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from abc import ABCMeta, abstractmethod
<pre><code class="python">from abc import ABCMeta, abstractmethod
from logging import Logger
from typing import Callable, Dict, Any, Awaitable, Optional

from slack_bolt.kwargs_injection.async_utils import build_async_required_kwargs
from slack_bolt.request.async_request import AsyncBoltRequest
from slack_bolt.response import BoltResponse
from slack_bolt.util.utils import get_arg_names_of_callable


class AsyncListenerStartHandler(metaclass=ABCMeta):
Expand All @@ -56,7 +56,7 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_start_handler<
def __init__(self, logger: Logger, func: Callable[..., Awaitable[None]]):
self.func = func
self.logger = logger
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

async def handle(
self,
Expand Down Expand Up @@ -108,7 +108,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def __init__(self, logger: Logger, func: Callable[..., Awaitable[None]]):
self.func = func
self.logger = logger
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

async def handle(
self,
Expand Down
8 changes: 4 additions & 4 deletions docs/api-docs/slack_bolt/listener/custom_listener.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ <h1 class="title">Module <code>slack_bolt.listener.custom_listener</code></h1>
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from logging import Logger
<pre><code class="python">from logging import Logger
from typing import Callable, Optional, Sequence

from slack_bolt.kwargs_injection import build_required_kwargs
Expand All @@ -37,6 +36,7 @@ <h1 class="title">Module <code>slack_bolt.listener.custom_listener</code></h1>
from .listener import Listener
from ..logger import get_bolt_app_logger
from ..middleware import Middleware
from ..util.utils import get_arg_names_of_callable


class CustomListener(Listener):
Expand Down Expand Up @@ -66,7 +66,7 @@ <h1 class="title">Module <code>slack_bolt.listener.custom_listener</code></h1>
self.matchers = matchers
self.middleware = middleware
self.auto_acknowledgement = auto_acknowledgement
self.arg_names = inspect.getfullargspec(ack_function).args
self.arg_names = get_arg_names_of_callable(ack_function)
self.logger = get_bolt_app_logger(app_name, self.ack_function, base_logger)

def run_ack_function(
Expand Down Expand Up @@ -132,7 +132,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self.matchers = matchers
self.middleware = middleware
self.auto_acknowledgement = auto_acknowledgement
self.arg_names = inspect.getfullargspec(ack_function).args
self.arg_names = get_arg_names_of_callable(ack_function)
self.logger = get_bolt_app_logger(app_name, self.ack_function, base_logger)

def run_ack_function(
Expand Down
2 changes: 1 addition & 1 deletion docs/api-docs/slack_bolt/listener/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self.matchers = matchers
self.middleware = middleware
self.auto_acknowledgement = auto_acknowledgement
self.arg_names = inspect.getfullargspec(ack_function).args
self.arg_names = get_arg_names_of_callable(ack_function)
self.logger = get_bolt_app_logger(app_name, self.ack_function, base_logger)

def run_ack_function(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ <h1 class="title">Module <code>slack_bolt.listener.listener_completion_handler</
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import inspect
from abc import ABCMeta, abstractmethod
<pre><code class="python">from abc import ABCMeta, abstractmethod
from logging import Logger
from typing import Callable, Dict, Any, Optional

from slack_bolt.kwargs_injection import build_required_kwargs
from slack_bolt.request.request import BoltRequest
from slack_bolt.response.response import BoltResponse
from slack_bolt.util.utils import get_arg_names_of_callable


class ListenerCompletionHandler(metaclass=ABCMeta):
Expand All @@ -56,7 +56,7 @@ <h1 class="title">Module <code>slack_bolt.listener.listener_completion_handler</
def __init__(self, logger: Logger, func: Callable[..., None]):
self.func = func
self.logger = logger
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

def handle(
self,
Expand Down Expand Up @@ -108,7 +108,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def __init__(self, logger: Logger, func: Callable[..., None]):
self.func = func
self.logger = logger
self.arg_names = inspect.getfullargspec(func).args
self.arg_names = get_arg_names_of_callable(func)

def handle(
self,
Expand Down
Loading

0 comments on commit 5ec8e15

Please sign in to comment.