Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(types): add full mypy --strict typing to transport requests and init modules (#1508)#1721

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
cureprotocols wants to merge1 commit intogoogleapis:main
base:main
Choose a base branch
Loading
fromcureprotocols:clean-transport-requests

Conversation

@cureprotocols
Copy link

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

✅ Files Updated

  • google/auth/transport/__init__.py – fully typed abstract base classes forRequest andResponse
  • 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__() inRequest interface now explicitly typed
  • All mypy strict errors resolved, including:
    • Line 53: missing return onstatus
    • Line 58: missing return onheaders
    • Line 63: missing return on__call__
    • Line 78: untyped helper function

✅ Verified

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

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@cureprotocols

[8]ページ先頭

©2009-2025 Movatter.jp