Skip to content

Commit

Permalink
Fix Python Linting Errors on Master (#31546)
Browse files Browse the repository at this point in the history
* Fix Linting Errors on Master

* correct docstring
  • Loading branch information
jrmccluskey authored and kennknowles committed Jun 11, 2024
1 parent 3660144 commit 8ccb155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 8ccb155

Please sign in to comment.