Skip to content
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
21e12c7
Added annotation for five functions in Authlib
Spider84pr Sep 27, 2025
84bcf4f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 27, 2025
57fa61c
Added annotation for remaining two functions
Spider84pr Sep 29, 2025
514d619
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 29, 2025
8025584
Merge branch 'python:main' into auth
Spider84pr Sep 29, 2025
c17df44
Added "type: ignore[import-untyped]" to pass mypytest
Spider84pr Sep 29, 2025
8addbd3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 29, 2025
8af2d45
Changed library for requests from requests to authx
Spider84pr Sep 30, 2025
42348ad
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 30, 2025
a36b99d
Added authx library to dependencies
Spider84pr Sep 30, 2025
5d71ad7
Merge branch 'auth' of github.com:Spider84pr/typeshed into auth
Spider84pr Sep 30, 2025
fe8f5f0
Added authx library to dependencies
Spider84pr Sep 30, 2025
9f0ed4e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 30, 2025
736414c
Update stubs/Authlib/authlib/integrations/base_client/async_app.pyi
Spider84pr Sep 30, 2025
210f1f5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 30, 2025
6e406b4
Added authx library to dependencies
Spider84pr Sep 30, 2025
ce035d2
Added annotations to kwargs for all functions
Spider84pr Sep 30, 2025
dd1416f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 30, 2025
6858213
Merge branch 'main' of github.com:Spider84pr/typeshed into auth
Spider84pr Oct 1, 2025
e368db3
Fixed annotations to kwargs for all functions
Spider84pr Oct 1, 2025
f8ceb98
Fixed annotations to kwargs for all functions
Spider84pr Oct 1, 2025
c50be52
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 1, 2025
65acd6c
Update stubs/Authlib/METADATA.toml
sobolevn Oct 1, 2025
4b771bf
Trying to fix stubtest. Remove httpx entry from entries from stubs/Au…
Spider84pr Oct 2, 2025
c2469c0
Revert "Update stubs/Authlib/METADATA.toml"
Spider84pr Oct 2, 2025
405cb7e
Trying to fix stubtest. add entry in METADATA.toml
Spider84pr Oct 2, 2025
c1b465b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 2, 2025
3280a42
added back @tests/.#stubtest_allowlist.txt
Spider84pr Oct 2, 2025
51db573
Trying to fix stubtest. add entry in METADATA.toml
Spider84pr Oct 2, 2025
186e0e4
Merge branch 'auth' of github.com:Spider84pr/typeshed into auth
Spider84pr Oct 2, 2025
8b1a45d
Trying to fix stubtest. add entry in METADATA.toml
Spider84pr Oct 2, 2025
4428ef8
Trying to fix stubtest. add entry in requirements-tests.txt
Spider84pr Oct 2, 2025
94e23c4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 2, 2025
3665c2b
Trying to fix stubtest. Corrected METADATA.toml
Spider84pr Oct 2, 2025
52f27aa
Merge branch 'auth' of github.com:Spider84pr/typeshed into auth
Spider84pr Oct 2, 2025
ebaf5ae
Trying to fix stubtest. Corrected METADATA.toml
Spider84pr Oct 2, 2025
2ce8939
Trying to fix stubtest. remove my changes in requirements-tests.txt
Spider84pr Oct 2, 2025
bc140cc
Merge branch 'main' of github.com:Spider84pr/typeshed into auth
Spider84pr Oct 4, 2025
99a15db
Added entries from stubs/Authlib/@tests/stubtest_allowlist.txt
Spider84pr Oct 4, 2025
7b83007
Added TODO comment stubs/Authlib/@tests/stubtest_allowlist.txt
Spider84pr Oct 4, 2025
5060bd8
Update stubs/Authlib/@tests/stubtest_allowlist.txt
Spider84pr Oct 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/Authlib/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "~= 1.6.4"
upstream_repository = "https://github.com/lepture/authlib"
requires = ["cryptography"]
requires = ["cryptography", "types-httpx"]
partial_stub = true
16 changes: 9 additions & 7 deletions stubs/Authlib/authlib/integrations/base_client/async_app.pyi
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
from logging import Logger
from typing import Any

import httpx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from authlib.integrations.base_client.sync_app import OAuth1Base, OAuth2Base

log: Logger

__all__ = ["AsyncOAuth1Mixin", "AsyncOAuth2Mixin"]

class AsyncOAuth1Mixin(OAuth1Base):
async def request(self, method, url, token=None, **kwargs): ...
async def create_authorization_url(self, redirect_uri=None, **kwargs): ...
async def fetch_access_token(self, request_token=None, **kwargs): ...
async def request(self, method: str, url: str, token: dict[str, Any] | None = None, **kwargs) -> httpx.Response: ...
async def create_authorization_url(self, redirect_uri: str | None = None, **kwargs) -> dict[str, Any]: ...
async def fetch_access_token(self, request_token: dict[str, Any] | None = None, **kwargs) -> dict[str, Any]: ...

class AsyncOAuth2Mixin(OAuth2Base):
async def load_server_metadata(self): ...
async def request(self, method, url, token=None, **kwargs): ...
async def create_authorization_url(self, redirect_uri=None, **kwargs): ...
async def fetch_access_token(self, redirect_uri=None, **kwargs): ...
async def load_server_metadata(self) -> dict[str, Any]: ...
async def request(self, method: str, url: str, token: dict[str, Any] | None = None, **kwargs) -> httpx.Response: ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to type **kwargs if your touching this function. The same applies for all others.

async def create_authorization_url(self, redirect_uri: str | None = None, **kwargs) -> dict[str, Any]: ...
async def fetch_access_token(self, redirect_uri: str | None = None, **kwargs) -> dict[str, Any]: ...
Loading