From c890675dc9ebc084f105be81dc81c048f4f599ea Mon Sep 17 00:00:00 2001 From: Pavel Kiselev Date: Tue, 23 Jun 2020 23:11:01 +0300 Subject: [PATCH] docs: change the documentation for using 'six.moves.collections_abc.Mapping' instead of 'dict' in 'client_options.from_dict()' (#53) --- google/api_core/client_options.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google/api_core/client_options.py b/google/api_core/client_options.py index d272f40f..57000e95 100644 --- a/google/api_core/client_options.py +++ b/google/api_core/client_options.py @@ -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 @@ -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. """