Skip to content

Commit 6ef588b

Browse files
committed
docs: fix typos
1 parent 47433e8 commit 6ef588b

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

google/cloud/spanner_v1/batch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
179179

180180

181181
def _make_write_pb(table, columns, values):
182-
"""Helper for :meth:`Batch.insert` et aliae.
182+
"""Helper for :meth:`Batch.insert` et al.
183183
184184
:type table: str
185185
:param table: Name of the table to be modified.

google/cloud/spanner_v1/database.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def __ne__(self, other):
310310
def create(self):
311311
"""Create this database within its instance
312312
313-
Inclues any configured schema assigned to :attr:`ddl_statements`.
313+
Includes any configured schema assigned to :attr:`ddl_statements`.
314314
315315
See
316316
https://cloud.google.com/spanner/reference/rpc/google.spanner.admin.database.v1#google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase
@@ -568,7 +568,7 @@ def run_in_transaction(self, func, *args, **kw):
568568
:returns: The return value of ``func``.
569569
570570
:raises Exception:
571-
reraises any non-ABORT execptions raised by ``func``.
571+
reraises any non-ABORT exceptions raised by ``func``.
572572
"""
573573
# Sanity check: Is there a transaction already running?
574574
# If there is, then raise a red flag. Otherwise, mark that this one
@@ -895,7 +895,7 @@ def generate_read_batches(
895895
896896
:rtype: iterable of dict
897897
:returns:
898-
mappings of information used peform actual partitioned reads via
898+
mappings of information used perform actual partitioned reads via
899899
:meth:`process_read_batch`.
900900
"""
901901
partitions = self._get_snapshot().partition_read(
@@ -945,7 +945,7 @@ def generate_query_batches(
945945
946946
Uses the ``PartitionQuery`` API request to start a partitioned
947947
query operation. Returns a list of batch information needed to
948-
peform the actual queries.
948+
perform the actual queries.
949949
950950
:type sql: str
951951
:param sql: SQL query statement
@@ -985,7 +985,7 @@ def generate_query_batches(
985985
986986
:rtype: iterable of dict
987987
:returns:
988-
mappings of information used peform actual partitioned reads via
988+
mappings of information used perform actual partitioned reads via
989989
:meth:`process_read_batch`.
990990
"""
991991
partitions = self._get_snapshot().partition_query(
@@ -1065,7 +1065,7 @@ def _check_ddl_statements(value):
10651065
https://cloud.google.com/spanner/docs/data-definition-language
10661066
10671067
:type value: list of string
1068-
:param value: DDL statements, excluding the 'CREATE DATABSE' statement
1068+
:param value: DDL statements, excluding the 'CREATE DATABASE' statement
10691069
10701070
:rtype: tuple
10711071
:returns: tuple of validated DDL statement strings.

google/cloud/spanner_v1/instance.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def delete(self):
349349
350350
Soon afterward:
351351
352-
* The instance and all databases within the instance will be deleteed.
352+
* The instance and all databases within the instance will be deleted.
353353
All data in the databases will be permanently deleted.
354354
"""
355355
api = self._client.instance_admin_api
@@ -365,7 +365,7 @@ def database(self, database_id, ddl_statements=(), pool=None, logger=None):
365365
366366
:type ddl_statements: list of string
367367
:param ddl_statements: (Optional) DDL statements, excluding the
368-
'CREATE DATABSE' statement.
368+
'CREATE DATABASE' statement.
369369
370370
:type pool: concrete subclass of
371371
:class:`~google.cloud.spanner_v1.pool.AbstractSessionPool`.

google/cloud/spanner_v1/keyset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _to_pb(self):
8888
return KeyRangePB(**kwargs)
8989

9090
def _to_dict(self):
91-
"""Return keyrange's state as a dict.
91+
"""Return the state of the keyrange as a dict.
9292
9393
:rtype: dict
9494
:returns: state of this instance.
@@ -155,7 +155,7 @@ def _to_pb(self):
155155
return KeySetPB(**kwargs)
156156

157157
def _to_dict(self):
158-
"""Return keyset's state as a dict.
158+
"""Return the state of the keyset as a dict.
159159
160160
The result can be used to serialize the instance and reconstitute
161161
it later using :meth:`_from_dict`.

google/cloud/spanner_v1/pool.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, labels=None):
4242

4343
@property
4444
def labels(self):
45-
"""User-assigned labels for sesions created by the pool.
45+
"""User-assigned labels for sessions created by the pool.
4646
4747
:rtype: dict (str -> str)
4848
:returns: labels assigned by the user
@@ -162,7 +162,7 @@ def bind(self, database):
162162
"""Associate the pool with a database.
163163
164164
:type database: :class:`~google.cloud.spanner_v1.database.Database`
165-
:param database: database used by the pool: used to create sessions
165+
:param database: database used by the pool to used to create sessions
166166
when needed.
167167
"""
168168
self._database = database

google/cloud/spanner_v1/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def run_in_transaction(self, func, *args, **kw):
321321
:returns: The return value of ``func``.
322322
323323
:raises Exception:
324-
reraises any non-ABORT execptions raised by ``func``.
324+
reraises any non-ABORT exceptions raised by ``func``.
325325
"""
326326
deadline = time.time() + kw.pop("timeout_secs", DEFAULT_RETRY_TIMEOUT_SECS)
327327
attempts = 0

google/cloud/spanner_v1/snapshot.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def partition_read(
297297
partition_size_bytes=None,
298298
max_partitions=None,
299299
):
300-
"""Perform a ``ParitionRead`` API request for rows in a table.
300+
"""Perform a ``PartitionRead`` API request for rows in a table.
301301
302302
:type table: str
303303
:param table: name of the table from which to fetch data
@@ -328,7 +328,7 @@ def partition_read(
328328
329329
:raises ValueError:
330330
for single-use snapshots, or if a transaction ID is
331-
already associtated with the snapshot.
331+
already associated with the snapshot.
332332
"""
333333
if not self._multi_use:
334334
raise ValueError("Cannot use single-use snapshot.")
@@ -369,7 +369,7 @@ def partition_query(
369369
partition_size_bytes=None,
370370
max_partitions=None,
371371
):
372-
"""Perform a ``ParitionQuery`` API request.
372+
"""Perform a ``PartitionQuery`` API request.
373373
374374
:type sql: str
375375
:param sql: SQL query statement
@@ -399,7 +399,7 @@ def partition_query(
399399
400400
:raises ValueError:
401401
for single-use snapshots, or if a transaction ID is
402-
already associtated with the snapshot.
402+
already associated with the snapshot.
403403
"""
404404
if not self._multi_use:
405405
raise ValueError("Cannot use single-use snapshot.")

google/cloud/spanner_v1/transaction.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def batch_update(self, statements):
266266
Tuple(status, Sequence[int])
267267
:returns:
268268
Status code, plus counts of rows affected by each completed DML
269-
statement. Note that if the staus code is not ``OK``, the
269+
statement. Note that if the status code is not ``OK``, the
270270
statement triggering the error will not have an entry in the
271271
list, nor will any statements following that one.
272272
"""

0 commit comments

Comments
 (0)