Skip to content

Commit 3ec9927

Browse files
committed
pylint
1 parent 1c9f830 commit 3ec9927

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

google/api_core/rest_helpers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def flatten_query_params(obj, strict=False):
4040
4141
Args:
4242
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.
43+
strict: a bool, defaulting to False, to enforce that all values in the
44+
result tuples be strings and, if boolean, lower-cased.
4445
4546
Returns: a list of tuples, with each tuple having a (possibly) multi-part name
4647
and a scalar value.
@@ -81,7 +82,10 @@ def _flatten_value(obj, key_path, strict=False):
8182

8283

8384
def _flatten_dict(obj, key_path, strict=False):
84-
items = (_flatten(value, key_path=key_path + [key], strict=strict) for key, value in obj.items())
85+
items = (
86+
_flatten(value, key_path=key_path + [key], strict=strict)
87+
for key, value in obj.items()
88+
)
8589
return functools.reduce(operator.concat, items, [])
8690

8791

0 commit comments

Comments
 (0)