Skip to content

Conversation

cureprotocols
Copy link

This PR contributes to #1508 by fully typing the google/auth/jwt.py module using mypy --strict.

✅ Highlights:

  • Full type annotations added to all public methods and classes
  • Proper handling of byte-to-string conversion in error formatting
  • Replaced f-strings with .format() to comply with --strict mode
  • Explicit str casts where required to eliminate str-bytes-safe warnings
  • # type: ignore used only where necessary (MalformedError, _helpers)
  • Removed deprecated # type: ignore lines and updated Mapping fallback

🧪 Verified With:

mypy --strict google/auth/jwt.py

@cureprotocols cureprotocols requested review from a team as code owners April 3, 2025 17:33
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.

1 participant