Fix pylint issue R1737: use-yield-from

Fix:
osbuild/pipeline.py:101:12: R1737: Use 'yield from' directly instead of yielding each element one by one (use-yield-from)

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-11-19 13:27:27 +01:00 committed by Michael Vogt
parent 689ca5cfe5
commit 7f86ccc7fc

View file

@ -98,8 +98,7 @@ class Stage:
if ip.origin != "org.osbuild.pipeline": if ip.origin != "org.osbuild.pipeline":
continue continue
for ref in ip.refs: yield from ip.refs
yield ref
def add_input(self, name, info, origin, options=None): def add_input(self, name, info, origin, options=None):
ip = Input(name, info, origin, options or {}) ip = Input(name, info, origin, options or {})