Skip to content

[oauthlib] Add GrantTypeBase.custom_validators - #16711

Merged
srittau merged 1 commit into
python:mainfrom
vintitres:oauthlib-custom-validators
Nov 6, 2026
Merged

srittau merged 1 commit into
python:mainfrom
vintitres:oauthlib-custom-validators

Conversation

@vintitres

Copy link
Copy Markdown
Contributor

GrantTypeBase.__init__ always sets self.custom_validators to a ValidatorsContainer (via _setup_custom_validators), but the stub doesn't declare it. Code that registers extra validators on an existing grant, e.g. server.auth_grant.custom_validators.pre_auth, currently fails with attr-defined.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

@srittau
srittau merged commit b1a2c89 into python:main Nov 6, 2026
74 checks passed
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.

2 participants