From 1c5b39ff1d99bbcb2fc0e0071a989b3f3845ff30 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 6 May 2024 10:09:14 +0200 Subject: [PATCH] STY: Apply ruff/pyupgrade rule UP028 (#12603) --- tools/dev/ensure_headers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/dev/ensure_headers.py b/tools/dev/ensure_headers.py index d56f67ac32b..435376ace37 100644 --- a/tools/dev/ensure_headers.py +++ b/tools/dev/ensure_headers.py @@ -32,8 +32,7 @@ def get_paths_from_tree(root, level=0): for entry in root: if entry.type == "tree": - for x in get_paths_from_tree(entry, level + 1): - yield x + yield from get_paths_from_tree(entry, level + 1) else: yield Path(entry.path) # entry.type