Skip to content

Commit 2565f34

Browse files
authored
[Authlib] Update to 1.6.2 (#14635)
1 parent 2ebe044 commit 2565f34

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

stubs/Authlib/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "~= 1.6.0"
1+
version = "~= 1.6.2"
22
upstream_repository = "https://github.com/lepture/authlib"
33
requires = ["cryptography"]
44
partial_stub = true

stubs/Authlib/authlib/jose/rfc7517/key_set.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ class KeySet:
77
def __init__(self, keys) -> None: ...
88
def as_dict(self, is_private: bool = False, **params): ...
99
def as_json(self, is_private: bool = False, **params): ...
10-
def find_by_kid(self, kid): ...
10+
def find_by_kid(self, kid, **params): ...

stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from _typeshed import Incomplete
22
from collections.abc import Mapping
3+
from typing import overload
34
from typing_extensions import deprecated
45

56
from authlib.oauth2.rfc6749 import ClientMixin
@@ -40,7 +41,11 @@ class OAuth2Request(OAuth2Payload):
4041
authorization_code: Incomplete | None
4142
refresh_token: Incomplete | None
4243
credential: Incomplete | None
43-
def __init__(self, method: str, uri: str, headers: Mapping[str, str] | None = None) -> None: ...
44+
@overload
45+
def __init__(self, method: str, uri: str, body: None = None, headers: Mapping[str, str] | None = None) -> None: ...
46+
@overload
47+
@deprecated("The `body` parameter in OAuth2Request is deprecated. Use the payload system instead.")
48+
def __init__(self, method: str, uri: str, body, headers: Mapping[str, str] | None = None) -> None: ...
4449
@property
4550
def args(self) -> dict[str, str | None]: ...
4651
@property
@@ -69,6 +74,9 @@ class OAuth2Request(OAuth2Payload):
6974
@property
7075
@deprecated("'request.state' is deprecated in favor of 'request.payload.state'")
7176
def state(self) -> str | None: ...
77+
@property
78+
@deprecated("'request.body' is deprecated. Use the payload system instead.")
79+
def body(self): ...
7280

7381
class JsonPayload:
7482
@property

0 commit comments

Comments
 (0)