Skip to content

Commit

Permalink
Docstring fix for has_scopes() and with_scopes(). (googleapis#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes authored and Jon Wayne Parrott committed Dec 13, 2017
1 parent 23c88f7 commit 369e2a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion google/auth/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ def has_scopes(self, scopes):
.. warning: This method is not guaranteed to be accurate if the
credentials are :attr:`~Credentials.invalid`.
Args:
scopes (Sequence[str]): The list of scopes to check.
Returns:
bool: True if the credentials have the given scopes.
"""
Expand Down Expand Up @@ -248,7 +251,8 @@ def with_scopes(self, scopes):
"""Create a copy of these credentials with the specified scopes.
Args:
scopes (Sequence[str]): The list of scopes to request.
scopes (Sequence[str]): The list of scopes to attach to the
current credentials.
Raises:
NotImplementedError: If the credentials' scopes can not be changed.
Expand Down

0 comments on commit 369e2a7

Please sign in to comment.