-
Notifications
You must be signed in to change notification settings - Fork 345
fix: add types to default and verify_token and Request __init__ based on comments in the source code. #1588
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
base: main
Are you sure you want to change the base?
Conversation
|
Could you squash your commits, and change the commit message to |
|
Happy to! |
Recently, I've been using this library with mypy strict mode, which doesn't like the fact that these functions are unannotated (they're the only functions I use, and thus the only ones mypy complains about to me). I'm happy to see that this project has py.typed, so these annotations should fix the problem!
50760ef to
ae25f47
Compare
| audience: str | list[str] | None = None, | ||
| certs_url: str = _GOOGLE_OAUTH2_CERTS_URL, | ||
| clock_skew_in_seconds: int = 0, | ||
| ) -> Mapping[str, Any]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually bad to return something with Any in it, but, um, that's just what was in the comment. ¯\_(ツ)_/¯
If the reviewer happens to have a better & more-accurate idea, let him change this line accordingly.
|
I'm hoping I can get this looked at in the near future. Also, it seems like (at least this time), it's the title of the PR that has to have fix: in it for conventionalcommits.org to pass, so have done so. |
Recently, I've been using this library with mypy strict mode, which doesn't like the fact that these functions are unannotated (they're the only functions I use, and thus the only ones mypy complains about to me). I'm happy to see that this project has py.typed, so these annotations should fix the problem!