1+ from typing import Any
12from logging import Logger
23
34from authlib .integrations .base_client .sync_app import OAuth1Base , OAuth2Base
@@ -8,11 +9,11 @@ __all__ = ["AsyncOAuth1Mixin", "AsyncOAuth2Mixin"]
89
910class AsyncOAuth1Mixin (OAuth1Base ):
1011 async def request (self , method , url , token = None , ** kwargs ): ...
11- async def create_authorization_url (self , redirect_uri = None , ** kwargs ): ...
12- async def fetch_access_token (self , request_token = None , ** kwargs ): ...
12+ async def create_authorization_url (self , redirect_uri : str | None = None , ** kwargs ) -> dict [ str , Any ] : ...
13+ async def fetch_access_token (self , request_token : dict [ str , Any ] | None = None , ** kwargs ) -> dict [ str , Any ] : ...
1314
1415class AsyncOAuth2Mixin (OAuth2Base ):
15- async def load_server_metadata (self ): ...
16+ async def load_server_metadata (self ) -> dict [ str , Any ] : ...
1617 async def request (self , method , url , token = None , ** kwargs ): ...
17- async def create_authorization_url (self , redirect_uri = None , ** kwargs ): ...
18- async def fetch_access_token (self , redirect_uri = None , ** kwargs ): ...
18+ async def create_authorization_url (self , redirect_uri : str | None = None , ** kwargs ) -> dict [ str , Any ] : ...
19+ async def fetch_access_token (self , redirect_uri : str | None = None , ** kwargs ) -> dict [ str , Any ] : ...
0 commit comments