Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3ec9927

Browse files
committed
pylint
1 parent1c9f830 commit3ec9927

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)forkey,valueinobj.items())
85+
items= (
86+
_flatten(value,key_path=key_path+ [key],strict=strict)
87+
forkey,valueinobj.items()
88+
)
8589
returnfunctools.reduce(operator.concat,items, [])
8690

8791

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp