From 92e1db8eebf92c1e2d07b7c10d86d87a69fe54bb Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 2 Sep 2022 00:17:44 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- google/api_core/rest_helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/google/api_core/rest_helpers.py b/google/api_core/rest_helpers.py index 9b3c9dc0..391351fd 100644 --- a/google/api_core/rest_helpers.py +++ b/google/api_core/rest_helpers.py @@ -81,7 +81,10 @@ def _flatten_value(obj, key_path, strict=False): def _flatten_dict(obj, key_path, strict=False): - items = (_flatten(value, key_path=key_path + [key], strict=strict) for key, value in obj.items()) + items = ( + _flatten(value, key_path=key_path + [key], strict=strict) + for key, value in obj.items() + ) return functools.reduce(operator.concat, items, [])