Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
docs: change the documentation for using 'six.moves.collections_abc.M…
…apping' instead of 'dict' in 'client_options.from_dict()'
  • Loading branch information
paul1319 committed Jun 18, 2020
commit 5e46589444a15f68a41a173d55357f81e531df11
6 changes: 3 additions & 3 deletions google/api_core/client_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_client_cert():

client = ImageAnnotatorClient(client_options=options)

You can also pass a dictionary.
You can also pass a mapping object.

.. code-block:: python

Expand Down Expand Up @@ -98,10 +98,10 @@ def __repr__(self):


def from_dict(options):
"""Construct a client options object from a dictionary.
"""Construct a client options object from a mapping object.

Args:
options (Dict[str, Any]): A dictionary with client options.
options (six.moves.collections_abc.Mapping): A mapping object with client options.
See the docstring for ClientOptions for details on valid arguments.
"""

Expand Down