X Tutup
Skip to content

Improve oauthlib.oauth2.rfc6749#13965

Merged
srittau merged 5 commits intopython:mainfrom
donbarbos:improve-oauthlib-oauth2-rfc6749-3
May 13, 2025
Merged

Improve oauthlib.oauth2.rfc6749#13965
srittau merged 5 commits intopython:mainfrom
donbarbos:improve-oauthlib-oauth2-rfc6749-3

Conversation

@donbarbos
Copy link
Contributor

No description provided.

@github-actions

This comment has been minimized.

Comment on lines +34 to +35
*args: Any, # actually, these are not used
**kwargs: Any, # actually, these are not used
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they are not used, we should use (_typeshed.)Unused instead of a comment. A potentially better option is to remove the arguments to prevent users from misspelling, e.g. Server(token_genarator=...) isn't an error with the current annotations.

Copy link
Contributor Author

@donbarbos donbarbos May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be honest i already forgot why i preferred Any, but i think because subclasses can use them

and still I'll probably just remove them

@github-actions
Copy link
Contributor

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

@srittau srittau merged commit fd20f4a into python:main May 13, 2025
49 checks passed
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
@donbarbos donbarbos deleted the improve-oauthlib-oauth2-rfc6749-3 branch February 25, 2026 04:08
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

X Tutup