Skip to content

[Authlib] Type OAuth2Client.introspect_token - #16130

Open
nightcityblade wants to merge 2 commits into
python:mainfrom
nightcityblade:fix/issue-15164
Open

[Authlib] Type OAuth2Client.introspect_token#16130
nightcityblade wants to merge 2 commits into
python:mainfrom
nightcityblade:fix/issue-15164

Conversation

@nightcityblade

@nightcityblade nightcityblade commented Aug 1, 2026

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

@github-actions

This comment has been minimized.

@srittau

srittau commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

See my previous comment about tests.

@nightcityblade

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

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. 🤖🎉

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