Skip to content

Commit

Permalink
update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmayr committed Jul 16, 2024
1 parent c325091 commit 02991a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions google/auth/_credentials_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ class _BaseCredentials(metaclass=abc.ABCMeta):
keys, scopes, and other options. These options are not changeable after
construction. Some classes will provide mechanisms to copy the credentials
with modifications such as :meth:`ScopedCredentials.with_scopes`.
Attributes:
token (str): The bearer token that can be used in HTTP headers to make
authenticated requests.
"""

def __init__(self):
self.token = None
"""str: The bearer token that can be used in HTTP headers to make
authenticated requests."""

@abc.abstractmethod
def refresh(self, request):
Expand Down
4 changes: 4 additions & 0 deletions google/auth/aio/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ class StaticCredentials(Credentials):
"""

def __init__(self, token):
"""
Args:
token (str): The OAuth 2.0 or JWT access token.
"""
super(StaticCredentials, self).__init__()
self.token = token

Expand Down

0 comments on commit 02991a8

Please sign in to comment.