We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1c9f830 commit3ec9927Copy full SHA for 3ec9927
google/api_core/rest_helpers.py
@@ -40,7 +40,8 @@ def flatten_query_params(obj, strict=False):
40
41
Args:
42
obj: a possibly nested dictionary (from json), or None
43
- strict: a bool, defaulting to False, to enforce that all values in the result tuples be strings and, if boolean, lower-cased.
+ strict: a bool, defaulting to False, to enforce that all values in the
44
+ result tuples be strings and, if boolean, lower-cased.
45
46
Returns: a list of tuples, with each tuple having a (possibly) multi-part name
47
and a scalar value.
@@ -81,7 +82,10 @@ def _flatten_value(obj, key_path, strict=False):
81
82
83
84
def_flatten_dict(obj,key_path,strict=False):
-items= (_flatten(value,key_path=key_path+ [key],strict=strict)forkey,valueinobj.items())
85
+items= (
86
+_flatten(value,key_path=key_path+ [key],strict=strict)
87
+forkey,valueinobj.items()
88
+ )
89
returnfunctools.reduce(operator.concat,items, [])
90
91