11import logging
22from logging import Logger
3- from typing import Optional , Callable , Awaitable
3+ from typing import Optional , Callable , Awaitable , TYPE_CHECKING
44
55from slack_sdk .oauth import RedirectUriPageRenderer , OAuthStateUtils
66from slack_sdk .oauth .installation_store import Installation
99from slack_bolt .request .async_request import AsyncBoltRequest
1010from slack_bolt .response import BoltResponse
1111
12+ if TYPE_CHECKING :
13+ from slack_bolt .oauth .async_oauth_settings import AsyncOAuthSettings
14+
1215
1316class AsyncSuccessArgs :
1417 def __init__ (
1518 self ,
1619 * ,
1720 request : AsyncBoltRequest ,
1821 installation : Installation ,
19- settings : "AsyncOAuthSettings" , # type: ignore[name-defined]
22+ settings : "AsyncOAuthSettings" ,
2023 default : "AsyncCallbackOptions" ,
2124 ):
2225 """The arguments for a success function.
@@ -41,7 +44,7 @@ def __init__(
4144 reason : str ,
4245 error : Optional [Exception ] = None ,
4346 suggested_status_code : int ,
44- settings : "AsyncOAuthSettings" , # type: ignore[name-defined]
47+ settings : "AsyncOAuthSettings" ,
4548 default : "AsyncCallbackOptions" ,
4649 ):
4750 """The arguments for a failure function.
0 commit comments