Skip to content

Commit 7f446b2

Browse files
committed
Fix type hint errors detected by pytype 2021.7.19
1 parent 7920f39 commit 7f446b2

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

slack_bolt/adapter/aws_lambda/local_lambda_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, app: Chalice, config: Config) -> None:
1414

1515
def invoke(
1616
self,
17-
FunctionName: str = None,
17+
FunctionName: str,
1818
InvocationType: str = "Event",
1919
Payload: str = "{}",
2020
) -> InvokeResponse:

slack_bolt/authorization/authorize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def __init__(
4242
self.arg_names = inspect.getfullargspec(func).args
4343

4444
def __call__(
45+
4546
self,
4647
*,
4748
context: BoltContext,

slack_bolt/middleware/ssl_check/ssl_check.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from typing import Callable
1+
from logging import Logger
2+
from typing import Callable, Optional
23

34
from slack_bolt.logger import get_bolt_logger
45
from slack_bolt.middleware.middleware import Middleware
@@ -7,7 +8,10 @@
78

89

910
class SslCheck(Middleware): # type: ignore
10-
def __init__(self, verification_token: str = None):
11+
verification_token: Optional[str]
12+
logger: Logger
13+
14+
def __init__(self, verification_token: Optional[str] = None):
1115
"""Handles `ssl_check` requests.
1216
Refer to https://api.slack.com/interactivity/slash-commands for details.
1317

0 commit comments

Comments
 (0)