Skip to content

Commit c890675

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/api_core/client_options.py

Lines 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)