FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Authlib] Type OAuth2Client.introspect_token by nightcityblade · Pull Request #16130 · python/typeshed · GitHub

Repository navigation

[Authlib] Type OAuth2Client.introspect_token - #16130

Merged
srittau merged 2 commits into
python:mainfrom
nightcityblade:fix/issue-15164
Aug 5, 2026
Merged

srittau merged 2 commits into
python:mainfrom
nightcityblade:fix/issue-15164

Conversation

nightcityblade commented Aug 1, 2026 •
edited
Loading

Copy link
Copy Markdown
Contributor

OAuth2Client.introspect_token now annotates its stable string parameters while leaving integration-specific authentication, headers, keyword arguments, and response types flexible. This makes inherited calls from AsyncOAuth2Client typed under strict mypy without over-constraining the requests and HTTPX integrations.

Tests: python tests/runtests.py stubs/Authlib (pre-commit, structure, Pyright, ty, and mypy passed; optional third-party stubtest skipped by the harness).

Fixes #15164

This comment has been minimized.

srittau commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

See my previous comment about tests.

Copy link
Copy Markdown
Contributor Author

Removed the Authlib regression test in 0e21638, following tests/REGRESSION.md. python tests/runtests.py stubs/Authlib now passes locally (pre-commit, structure, Pyright, ty, and mypy; third-party stubtest skipped by the harness).

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

srittau merged commit 7a6ee95 into python:main Aug 5, 2026
59 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

introspect_token raises no-untyped-call violation in 1.6.6.20251220

2 participants


Back | FazBrowse Home | New Git URL