Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherrypick #31546 to 2.57.0 release branch #31563

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdks/python/apache_beam/internal/gcp/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def set_running_in_gce(worker_executing_project):


def get_service_credentials(pipeline_options):
# type: (PipelineOptions) -> Optional[google.auth.credentials.Credentials]
# type: (PipelineOptions) -> Optional[_ApitoolsCredentialsAdapter]

"""For internal use only; no backwards-compatibility guarantees.

Expand All @@ -76,7 +76,7 @@ def get_service_credentials(pipeline_options):
like impersonated credentials.

Returns:
A ``google.auth.credentials.Credentials`` object or None if credentials
A ``_ApitoolsCredentialsAdapter`` object or None if credentials
not found. Returned object is thread-safe.
"""
return _Credentials.get_service_credentials(pipeline_options)
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/apache_beam/internal/gcp/auth_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
try:
import google.auth as gauth
except ImportError:
gauth = None
gauth = None # type: ignore


class MockLoggingHandler(logging.Handler):
Expand Down
Loading