Skip to content

Commit 21e12c7

Browse files
committed
Added annotation for five functions in Authlib
1 parent c7d0fd9 commit 21e12c7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Any
12
from logging import Logger
23

34
from authlib.integrations.base_client.sync_app import OAuth1Base, OAuth2Base
@@ -8,11 +9,11 @@ __all__ = ["AsyncOAuth1Mixin", "AsyncOAuth2Mixin"]
89

910
class 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

1415
class 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

Comments
 (0)