Skip to content

Commit 03fdd85

Browse files
committed
Add type hint updates missed in #148
1 parent a1feadd commit 03fdd85

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

slack_bolt/authorization/async_authorize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def __call__(
2222
*,
2323
context: AsyncBoltContext,
2424
enterprise_id: Optional[str],
25-
team_id: str,
25+
team_id: Optional[str], # can be None for org-wide installed apps
2626
user_id: Optional[str],
2727
) -> Optional[AuthorizeResult]:
2828
raise NotImplementedError()
@@ -41,7 +41,7 @@ async def __call__(
4141
*,
4242
context: AsyncBoltContext,
4343
enterprise_id: Optional[str],
44-
team_id: str,
44+
team_id: Optional[str], # can be None for org-wide installed apps
4545
user_id: Optional[str],
4646
) -> Optional[AuthorizeResult]:
4747
try:
@@ -116,7 +116,7 @@ async def __call__(
116116
*,
117117
context: AsyncBoltContext,
118118
enterprise_id: Optional[str],
119-
team_id: str,
119+
team_id: Optional[str], # can be None for org-wide installed apps
120120
user_id: Optional[str],
121121
) -> Optional[AuthorizeResult]:
122122

slack_bolt/authorization/async_authorize_args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ class AsyncAuthorizeArgs:
1111
logger: Logger
1212
client: AsyncWebClient
1313
enterprise_id: Optional[str]
14-
team_id: str
14+
team_id: Optional[str]
1515
user_id: Optional[str]
1616

1717
def __init__(
1818
self,
1919
*,
2020
context: AsyncBoltContext,
2121
enterprise_id: Optional[str],
22-
team_id: str,
22+
team_id: Optional[str], # can be None for org-wide installed apps
2323
user_id: Optional[str],
2424
):
2525
"""The whole arguments that are passed to Authorize functions.

slack_bolt/authorization/authorize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __call__(
2121
*,
2222
context: BoltContext,
2323
enterprise_id: Optional[str],
24-
team_id: str,
24+
team_id: Optional[str], # can be None for org-wide installed apps
2525
user_id: Optional[str],
2626
) -> Optional[AuthorizeResult]:
2727
raise NotImplementedError()
@@ -43,7 +43,7 @@ def __call__(
4343
*,
4444
context: BoltContext,
4545
enterprise_id: Optional[str],
46-
team_id: str,
46+
team_id: Optional[str], # can be None for org-wide installed apps
4747
user_id: Optional[str],
4848
) -> Optional[AuthorizeResult]:
4949
try:
@@ -121,7 +121,7 @@ def __call__(
121121
*,
122122
context: BoltContext,
123123
enterprise_id: Optional[str],
124-
team_id: str,
124+
team_id: Optional[str], # can be None for org-wide installed apps
125125
user_id: Optional[str],
126126
) -> Optional[AuthorizeResult]:
127127

slack_bolt/authorization/authorize_args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ class AuthorizeArgs:
1111
logger: Logger
1212
client: WebClient
1313
enterprise_id: Optional[str]
14-
team_id: str
14+
team_id: Optional[str]
1515
user_id: Optional[str]
1616

1717
def __init__(
1818
self,
1919
*,
2020
context: BoltContext,
2121
enterprise_id: Optional[str],
22-
team_id: str,
22+
team_id: Optional[str], # can be None for org-wide installed apps
2323
user_id: Optional[str],
2424
):
2525
"""The whole arguments that are passed to Authorize functions.

0 commit comments

Comments
 (0)