diff --git a/stubs/requests-oauthlib/METADATA.toml b/stubs/requests-oauthlib/METADATA.toml index 7d3601518685..e9612f032640 100644 --- a/stubs/requests-oauthlib/METADATA.toml +++ b/stubs/requests-oauthlib/METADATA.toml @@ -1,3 +1,3 @@ -version = "1.3.*" +version = "1.4.*" upstream_repository = "https://github.com/requests/requests-oauthlib" requires = ["types-oauthlib", "types-requests"] diff --git a/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi b/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi index 845c9fd050c5..2db50b97e4b3 100644 --- a/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +++ b/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi @@ -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 diff --git a/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi b/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi index be380900d91b..3147c4eaf80d 100644 --- a/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi +++ b/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi @@ -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, @@ -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 @@ -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, @@ -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: ... @@ -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,