Skip to content

[oauthlib] Add missing stubs #14301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion stubs/oauthlib/@tests/stubtest_allowlist.txt

This file was deleted.

4 changes: 0 additions & 4 deletions stubs/oauthlib/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
version = "3.2.*"
upstream_repository = "https://github.com/oauthlib/oauthlib"
partial_stub = true

[tool.stubtest]
ignore_missing_stub = true
2 changes: 1 addition & 1 deletion stubs/oauthlib/oauthlib/oauth1/rfc5849/parameters.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from _typeshed import Incomplete

def prepare_headers(oauth_params, headers: Incomplete | None = ..., realm: Incomplete | None = ...): ...
def prepare_headers(params, headers: Incomplete | None = ..., realm: Incomplete | None = ...): ...
def prepare_form_encoded_body(oauth_params, body): ...
def prepare_request_uri_query(oauth_params, uri): ...
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ class RequestValidator:
def is_pkce_required(self, client_id: str, request: Request) -> bool: ...
def get_code_challenge(self, code: str, request: Request) -> str: ...
def get_code_challenge_method(self, code: str, request: Request) -> str: ...
def is_origin_allowed(self, client_id: str, origin, request: Request, *args, **kwargs) -> bool: ...