Skip to content

Commit ed0c63e

Browse files
committed
Fixes #8545 by removing typing information for kwargs to not conflict with type checkers
1 parent 226cdf1 commit ed0c63e

File tree

6 files changed

+0
-9
lines changed

6 files changed

+0
-9
lines changed

core/google/cloud/client.py

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def from_service_account_json(cls, json_credentials_path, *args, **kwargs):
6262
:type args: tuple
6363
:param args: Remaining positional arguments to pass to constructor.
6464
65-
:type kwargs: dict
6665
:param kwargs: Remaining keyword arguments to pass to constructor.
6766
6867
:rtype: :class:`_ClientFactoryMixin`

datastore/google/cloud/datastore/client.py

-2
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ def batch(self):
560560
def transaction(self, **kwargs):
561561
"""Proxy to :class:`google.cloud.datastore.transaction.Transaction`.
562562
563-
:type kwargs: dict
564563
:param kwargs: Keyword arguments to be passed in.
565564
"""
566565
return Transaction(self, **kwargs)
@@ -633,7 +632,6 @@ def do_something(entity):
633632
>>> query_iter.next_page_token is None
634633
True
635634
636-
:type kwargs: dict
637635
:param kwargs: Parameters for initializing and instance of
638636
:class:`~google.cloud.datastore.query.Query`.
639637

datastore/google/cloud/datastore/key.py

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ class Key(object):
9292
:param path_args: May represent a partial (odd length) or full (even
9393
length) key path.
9494
95-
:type kwargs: dict
9695
:param kwargs: Keyword arguments to be passed in.
9796
9897
Accepted keyword arguments are

monitoring/google/cloud/monitoring_v3/query.py

-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ def select_resources(self, *args, **kwargs):
247247
conjunction. If just one is provided and no keyword arguments
248248
are provided, it can be a disjunction.
249249
250-
:type kwargs: dict
251250
:param kwargs: Label filters to include in the conjunction as
252251
described above.
253252
@@ -309,7 +308,6 @@ def select_metrics(self, *args, **kwargs):
309308
conjunction. If just one is provided and no keyword arguments
310309
are provided, it can be a disjunction.
311310
312-
:type kwargs: dict
313311
:param kwargs: Label filters to include in the conjunction as
314312
described above.
315313

spanner/google/cloud/spanner_v1/pool.py

-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ def _new_session(self):
112112
def session(self, **kwargs):
113113
"""Check out a session from the pool.
114114
115-
:type kwargs: dict
116115
:param kwargs: (optional) keyword arguments, passed through to
117116
the returned checkout.
118117
@@ -505,7 +504,6 @@ class SessionCheckout(object):
505504
:class:`~google.cloud.spanner_v1.session.AbstractSessionPool`
506505
:param pool: Pool from which to check out a session.
507506
508-
:type kwargs: dict
509507
:param kwargs: extra keyword arguments to be passed to :meth:`pool.get`.
510508
"""
511509

storage/google/cloud/storage/bucket.py

-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@ def get_blob(
684684
:param generation: Optional. If present, selects a specific revision of
685685
this object.
686686
687-
:type kwargs: dict
688687
:param kwargs: Keyword arguments to pass to the
689688
:class:`~google.cloud.storage.blob.Blob` constructor.
690689

0 commit comments

Comments
 (0)