Skip to content

Commit db00b5a

Browse files
author
rariyama
committed
fix docstrings
1 parent 755cff6 commit db00b5a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

googleapiclient/_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def positional(max_positional_args):
4242
This decorator makes it easy to support Python 3 style keyword-only
4343
parameters. For example, in Python 3 it is possible to write::
4444
45-
def fn(pos1, *, kwonly1=None, kwonly1=None):
45+
def fn(pos1, *, kwonly1=None, kwonly2=None):
4646
...
4747
4848
All named parameters after ``*`` must be a keyword::
@@ -94,15 +94,15 @@ def my_method(cls, pos1, kwonly1=None):
9494
9595
Args:
9696
max_positional_arguments: Maximum number of positional arguments. All
97-
parameters after the this index must be
97+
parameters after this index must be
9898
keyword only.
9999
100100
Returns:
101101
A decorator that prevents using arguments after max_positional_args
102102
from being used as positional parameters.
103103
104104
Raises:
105-
TypeError: if a key-word only argument is provided as a positional
105+
TypeError: if a keyword-only argument is provided as a positional
106106
parameter, but only if
107107
_helpers.positional_parameters_enforcement is set to
108108
POSITIONAL_EXCEPTION.

googleapiclient/discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def build(
328328

329329
def _discovery_service_uri_options(discoveryServiceUrl, version):
330330
"""
331-
Returns Discovery URIs to be used for attemnting to build the API Resource.
331+
Returns Discovery URIs to be used for attempting to build the API Resource.
332332
333333
Args:
334334
discoveryServiceUrl:

0 commit comments

Comments
 (0)