Skip to content

Conversation

@cureprotocols
Copy link

This PR contributes to #1508 by fully annotating the following modules to support mypy --strict compatibility:

✅ Files Updated

  • google/auth/transport/__init__.py – fully typed abstract base classes for Request and Response
  • google/auth/transport/requests.py – concrete implementation with strict typing

📌 Highlights

  • All functions and methods include explicit return type annotations
  • Deprecated @abc.abstractproperty replaced with @property + @abc.abstractmethod
  • __call__() in Request interface now explicitly typed
  • All mypy strict errors resolved, including:
    • Line 53: missing return on status
    • Line 58: missing return on headers
    • Line 63: missing return on __call__
    • Line 78: untyped helper function

✅ Verified

mypy --strict google/auth/transport/__init__.py
mypy --strict google/auth/transport/requests.py

@chalmerlowe
Copy link
Contributor

This appears to be an autogenerated PR. Closing. For some specific examples of why PRs posted by this account (cureprotocol) appear to be fraudulent, see links below.

This PR links to an issue #1508 that appears to have nothing to do with the need for type hinting. It is part of a large collection of PRs issued by the same entity at the same time.

Other examples of PRs that have significant issues:
#1712 (comment)
#1711 (comment)
#1717 (comment)

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