Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c890675

Browse filesBrowse files
authored
docs: change the documentation for using 'six.moves.collections_abc.Mapping' instead of 'dict' in 'client_options.from_dict()' (#53)
1 parent cc56733 commit c890675
Copy full SHA for c890675

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎google/api_core/client_options.py

Copy file name to clipboardExpand all lines: google/api_core/client_options.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_client_cert():
3333
3434
client = ImageAnnotatorClient(client_options=options)
3535
36-
You can also pass a dictionary.
36+
You can also pass a mapping object.
3737
3838
.. code-block:: python
3939
@@ -98,10 +98,10 @@ def __repr__(self):
9898

9999

100100
def from_dict(options):
101-
"""Construct a client options object from a dictionary.
101+
"""Construct a client options object from a mapping object.
102102
103103
Args:
104-
options (Dict[str, Any]): A dictionary with client options.
104+
options (six.moves.collections_abc.Mapping): A mapping object with client options.
105105
See the docstring for ClientOptions for details on valid arguments.
106106
"""
107107

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.