Skip to content

Commit

Permalink
Bump requests-oauthlib to 1.4.* (#11601)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daverball authored Mar 14, 2024
1 parent 5e642aa commit 449f70f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stubs/requests-oauthlib/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = "1.3.*"
version = "1.4.*"
upstream_repository = "https://github.com/requests/requests-oauthlib"
requires = ["types-oauthlib", "types-requests"]
2 changes: 0 additions & 2 deletions stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ CONTENT_TYPE_FORM_URLENCODED: str
CONTENT_TYPE_MULTI_PART: str
log: Logger

unicode = str

class OAuth1(AuthBase):
client_class: type[Client]
client: Client
Expand Down
12 changes: 8 additions & 4 deletions stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class OAuth2Session(requests.Session):
auto_refresh_kwargs: dict[str, Any]
token_updater: Incomplete
compliance_hook: _ComplianceHooks
scope: Incomplete | None
def __init__(
self,
client_id: Incomplete | None = None,
Expand All @@ -50,8 +49,13 @@ class OAuth2Session(requests.Session):
token: Incomplete | None = None,
state: Incomplete | None = None,
token_updater: Incomplete | None = None,
pkce: Incomplete | None = None,
**kwargs,
) -> None: ...
@property
def scope(self) -> Incomplete | None: ... # oauthlib.oauth2.Client.scope
@scope.setter
def scope(self, value: Incomplete | None) -> None: ...
def new_state(self): ...
@property
def client_id(self) -> Incomplete | None: ... # oauthlib.oauth2.Client.client_id
Expand Down Expand Up @@ -85,7 +89,7 @@ class OAuth2Session(requests.Session):
force_querystring: bool = False,
timeout: Incomplete | None = None,
headers: Incomplete | None = None,
verify: bool = True,
verify: bool | None = None,
proxies: Incomplete | None = None,
include_client_id: Incomplete | None = None,
client_secret: Incomplete | None = None,
Expand All @@ -101,7 +105,7 @@ class OAuth2Session(requests.Session):
auth: Incomplete | None = None,
timeout: Incomplete | None = None,
headers: Incomplete | None = None,
verify: bool = True,
verify: bool | None = None,
proxies: Incomplete | None = None,
**kwargs,
) -> _Token: ...
Expand All @@ -114,10 +118,10 @@ class OAuth2Session(requests.Session):
withhold_token: bool = False,
client_id: Incomplete | None = None,
client_secret: Incomplete | None = None,
files: requests.sessions._Files | None = None,
*,
params: requests.sessions._Params | None = None,
cookies: None | RequestsCookieJar | requests.sessions._TextMapping = None,
files: requests.sessions._Files | None = None,
auth: requests.sessions._Auth | None = None,
timeout: requests.sessions._Timeout | None = None,
allow_redirects: bool = True,
Expand Down

0 comments on commit 449f70f

Please sign in to comment.