You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(google-auth): invalid TYPE_CHECKING imports in google/auth/_default.py cause Unknown types in Pyright #19077
In google/auth/_default.py, the TYPE_CHECKING block attempts to import classes as if they were submodules:
ifTYPE_CHECKING: # pragma: NO COVERimportgoogle.auth.credentials.Credentials# type: ignoreimportgoogle.auth.transport.Request# type: ignore
Because Credentials and Request are classes (not submodules), these imports fail to resolve and are suppressed with # type: ignore. As a result, type checkers like Pyright / BasedPyright resolve the annotations on google.auth.default():
Activity