From f81bb5dfaec96950680c7064b137222f3d1a9f51 Mon Sep 17 00:00:00 2001 From: iddober Date: Sun, 27 May 2018 23:26:56 +0300 Subject: [PATCH] Update client.py Fix error in documentation. In case of single value the function "detect_language" returns a dictionary (not a string). --- translate/google/cloud/translate_v2/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/google/cloud/translate_v2/client.py b/translate/google/cloud/translate_v2/client.py index 46705bd7513a..c3cbe58eb967 100644 --- a/translate/google/cloud/translate_v2/client.py +++ b/translate/google/cloud/translate_v2/client.py @@ -103,7 +103,7 @@ def detect_language(self, values): :param values: String or list of strings that will have language detected. - :rtype: str or list + :rtype: dict or list :returns: A list of dictionaries for each queried value. Each dictionary typically contains three keys