Skip to content

Commit 5ec8e15

Browse files
committed
version 1.14.3
1 parent 656ce6f commit 5ec8e15

27 files changed

+102
-84
lines changed

docs/api-docs/slack_bolt/async_app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,7 @@ <h3>Methods</h3>
35083508
def __init__(self, *, app_name: str, func: Callable[..., Awaitable[bool]], base_logger: Optional[Logger] = None):
35093509
self.app_name = app_name
35103510
self.func = func
3511-
self.arg_names = inspect.getfullargspec(func).args
3511+
self.arg_names = get_arg_names_of_callable(func)
35123512
self.logger = get_bolt_app_logger(self.app_name, self.func, base_logger)
35133513

35143514
async def async_matches(self, req: AsyncBoltRequest, resp: BoltResponse) -&gt; bool:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.async_authorize</code></
2626
<summary>
2727
<span>Expand source code</span>
2828
</summary>
29-
<pre><code class="python">import inspect
30-
from logging import Logger
29+
<pre><code class="python">from logging import Logger
3130
from typing import Optional, Callable, Awaitable, Dict, Any
3231

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

4646

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

7575
async def __call__(
7676
self,
@@ -395,7 +395,7 @@ <h3>Subclasses</h3>
395395
def __init__(self, *, logger: Logger, func: Callable[..., Awaitable[AuthorizeResult]]):
396396
self.logger = logger
397397
self.func = func
398-
self.arg_names = inspect.getfullargspec(func).args
398+
self.arg_names = get_arg_names_of_callable(func)
399399

400400
async def __call__(
401401
self,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.authorize</code></h1>
2626
<summary>
2727
<span>Expand source code</span>
2828
</summary>
29-
<pre><code class="python">import inspect
30-
from logging import Logger
29+
<pre><code class="python">from logging import Logger
3130
from typing import Optional, Callable, Dict, Any
3231

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

4545

4646
class Authorize:
@@ -74,7 +74,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.authorize</code></h1>
7474
):
7575
self.logger = logger
7676
self.func = func
77-
self.arg_names = inspect.getfullargspec(func).args
77+
self.arg_names = get_arg_names_of_callable(func)
7878

7979
def __call__(
8080
self,
@@ -400,7 +400,7 @@ <h3>Subclasses</h3>
400400
):
401401
self.logger = logger
402402
self.func = func
403-
self.arg_names = inspect.getfullargspec(func).args
403+
self.arg_names = get_arg_names_of_callable(func)
404404

405405
def __call__(
406406
self,

docs/api-docs/slack_bolt/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3771,7 +3771,7 @@ <h3>Methods</h3>
37713771
def __init__(self, *, app_name: str, func: Callable[..., bool], base_logger: Optional[Logger] = None):
37723772
self.app_name = app_name
37733773
self.func = func
3774-
self.arg_names = inspect.getfullargspec(func).args
3774+
self.arg_names = get_arg_names_of_callable(func)
37753775
self.logger = get_bolt_app_logger(self.app_name, self.func, base_logger)
37763776

37773777
def matches(self, req: BoltRequest, resp: BoltResponse) -&gt; bool:

docs/api-docs/slack_bolt/lazy_listener/async_internals.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ <h1 class="title">Module <code>slack_bolt.lazy_listener.async_internals</code></
2626
<summary>
2727
<span>Expand source code</span>
2828
</summary>
29-
<pre><code class="python">import inspect
30-
from functools import wraps
29+
<pre><code class="python">from functools import wraps
3130
from logging import Logger
3231
from typing import Callable, Awaitable
3332

3433
from slack_bolt.kwargs_injection.async_utils import build_async_required_kwargs
3534
from slack_bolt.request.async_request import AsyncBoltRequest
35+
from slack_bolt.util.utils import get_arg_names_of_callable
3636

3737

3838
async def to_runnable_function(
3939
internal_func: Callable[..., Awaitable[None]],
4040
logger: Logger,
4141
request: AsyncBoltRequest,
4242
):
43-
arg_names = inspect.getfullargspec(internal_func).args
43+
arg_names = get_arg_names_of_callable(internal_func)
4444

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

8686
@wraps(internal_func)
8787
async def request_wired_wrapper() -&gt; None:

docs/api-docs/slack_bolt/lazy_listener/internals.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ <h1 class="title">Module <code>slack_bolt.lazy_listener.internals</code></h1>
2626
<summary>
2727
<span>Expand source code</span>
2828
</summary>
29-
<pre><code class="python">import inspect
30-
from functools import wraps
29+
<pre><code class="python">from functools import wraps
3130
from logging import Logger
3231
from typing import Callable
3332

3433
from slack_bolt.kwargs_injection import build_required_kwargs
3534
from slack_bolt.request import BoltRequest
35+
from slack_bolt.util.utils import get_arg_names_of_callable
3636

3737

3838
def build_runnable_function(
3939
func: Callable[..., None],
4040
logger: Logger,
4141
request: BoltRequest,
4242
) -&gt; Callable[[], None]:
43-
arg_names = inspect.getfullargspec(func).args
43+
arg_names = get_arg_names_of_callable(func)
4444

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

8686
@wraps(func)
8787
def request_wired_func_wrapper() -&gt; None:

docs/api-docs/slack_bolt/listener/async_listener.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener</code></h1>
3434
from slack_bolt.request.async_request import AsyncBoltRequest
3535
from slack_bolt.response import BoltResponse
3636
from ..kwargs_injection.async_utils import build_async_required_kwargs
37+
from ..util.utils import get_arg_names_of_callable
3738

3839

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

99100

100-
import inspect
101101
from logging import Logger
102102
from typing import Callable, Awaitable
103103

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

141141
async def run_ack_function(
@@ -208,7 +208,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
208208
self.matchers = matchers
209209
self.middleware = middleware
210210
self.auto_acknowledgement = auto_acknowledgement
211-
self.arg_names = inspect.getfullargspec(ack_function).args
211+
self.arg_names = get_arg_names_of_callable(ack_function)
212212
self.logger = get_bolt_app_logger(app_name, self.ack_function, base_logger)
213213

214214
async def run_ack_function(
@@ -342,7 +342,7 @@ <h2 id="returns">Returns</h2>
342342
self.matchers = matchers
343343
self.middleware = middleware
344344
self.auto_acknowledgement = auto_acknowledgement
345-
self.arg_names = inspect.getfullargspec(ack_function).args
345+
self.arg_names = get_arg_names_of_callable(ack_function)
346346
self.logger = get_bolt_app_logger(app_name, self.ack_function, base_logger)
347347

348348
async def run_ack_function(

docs/api-docs/slack_bolt/listener/async_listener_completion_handler.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_completion_han
2626
<summary>
2727
<span>Expand source code</span>
2828
</summary>
29-
<pre><code class="python">import inspect
30-
from abc import ABCMeta, abstractmethod
29+
<pre><code class="python">from abc import ABCMeta, abstractmethod
3130
from logging import Logger
3231
from typing import Callable, Dict, Any, Awaitable, Optional
3332

3433
from slack_bolt.kwargs_injection.async_utils import build_async_required_kwargs
3534
from slack_bolt.request.async_request import AsyncBoltRequest
3635
from slack_bolt.response import BoltResponse
36+
from slack_bolt.util.utils import get_arg_names_of_callable
3737

3838

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

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

113113
async def handle(
114114
self,

docs/api-docs/slack_bolt/listener/async_listener_error_handler.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_error_handler<
2626
<summary>
2727
<span>Expand source code</span>
2828
</summary>
29-
<pre><code class="python">import inspect
30-
from abc import ABCMeta, abstractmethod
29+
<pre><code class="python">from abc import ABCMeta, abstractmethod
3130
from logging import Logger
3231
from typing import Callable, Dict, Any, Awaitable, Optional
3332

3433
from slack_bolt.kwargs_injection.async_utils import build_async_required_kwargs
3534
from slack_bolt.request.async_request import AsyncBoltRequest
3635
from slack_bolt.response import BoltResponse
36+
from slack_bolt.util.utils import get_arg_names_of_callable
3737

3838

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

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

123123
async def handle(
124124
self,

docs/api-docs/slack_bolt/listener/async_listener_start_handler.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ <h1 class="title">Module <code>slack_bolt.listener.async_listener_start_handler<
2626
<summary>
2727
<span>Expand source code</span>
2828
</summary>
29-
<pre><code class="python">import inspect
30-
from abc import ABCMeta, abstractmethod
29+
<pre><code class="python">from abc import ABCMeta, abstractmethod
3130
from logging import Logger
3231
from typing import Callable, Dict, Any, Awaitable, Optional
3332

3433
from slack_bolt.kwargs_injection.async_utils import build_async_required_kwargs
3534
from slack_bolt.request.async_request import AsyncBoltRequest
3635
from slack_bolt.response import BoltResponse
36+
from slack_bolt.util.utils import get_arg_names_of_callable
3737

3838

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

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

113113
async def handle(
114114
self,

0 commit comments

Comments
 (0)