Skip to content

Conversation

@wyattscarpenter
Copy link

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!

@wyattscarpenter wyattscarpenter requested review from a team as code owners August 20, 2024 08:17
@arithmetic1728 arithmetic1728 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 20, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 20, 2024
@arithmetic1728
Copy link
Contributor

arithmetic1728 commented Aug 20, 2024

Could you squash your commits, and change the commit message tofix: add types to verify_token and request __init__? The conventionalcommits.org test requires the commit message to start with the "fix:" prefix. Thanks!

@wyattscarpenter
Copy link
Author

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!
@wyattscarpenter wyattscarpenter changed the title Add types to verify_token and Request __init__ based on comments in the source code. fix: add types to verify_token and Request __init__ based on comments in the source code. Aug 5, 2025
audience: str | list[str] | None = None,
certs_url: str = _GOOGLE_OAUTH2_CERTS_URL,
clock_skew_in_seconds: int = 0,
) -> Mapping[str, Any]:
Copy link
Author

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.

@wyattscarpenter
Copy link
Author

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.

@wyattscarpenter wyattscarpenter changed the title fix: add types to verify_token and Request __init__ based on comments in the source code. fix: add types to default and verify_token and Request __init__ based on comments in the source code. Aug 6, 2025
@wyattscarpenter wyattscarpenter requested a review from a team as a code owner August 6, 2025 01:42
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.

3 participants