Skip to content

Commit 57fa61c

Browse files
committed
Added annotation for remaining two functions
1 parent 84bcf4f commit 57fa61c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
from logging import Logger
21
from typing import Any
2+
from logging import Logger
33

4+
import requests
45
from authlib.integrations.base_client.sync_app import OAuth1Base, OAuth2Base
56

67
log: Logger
78

89
__all__ = ["AsyncOAuth1Mixin", "AsyncOAuth2Mixin"]
910

1011
class AsyncOAuth1Mixin(OAuth1Base):
11-
async def request(self, method, url, token=None, **kwargs): ...
12+
async def request(self, method: str, url: str, token: dict[str, Any] | None =None, **kwargs) -> requests.Response: ...
1213
async def create_authorization_url(self, redirect_uri: str | None = None, **kwargs) -> dict[str, Any]: ...
1314
async def fetch_access_token(self, request_token: dict[str, Any] | None = None, **kwargs) -> dict[str, Any]: ...
1415

1516
class AsyncOAuth2Mixin(OAuth2Base):
1617
async def load_server_metadata(self) -> dict[str, Any]: ...
17-
async def request(self, method, url, token=None, **kwargs): ...
18+
async def request(self, method: str, url: str, token: dict[str, Any] | None =None, **kwargs) -> requests.Response: ...
1819
async def create_authorization_url(self, redirect_uri: str | None = None, **kwargs) -> dict[str, Any]: ...
1920
async def fetch_access_token(self, redirect_uri: str | None = None, **kwargs) -> dict[str, Any]: ...

0 commit comments

Comments
 (0)