fix linting

This commit is contained in:
Robert Kaussow 2023-08-29 10:19:52 +02:00 committed by renovate[bot]
parent 33caaf78c9
commit 8e3dd49970

View File

@ -23,8 +23,7 @@ def to_bool(string):
def flatten(items):
for x in items:
if isinstance(x, Iterable) and not isinstance(x, (str, bytes)):
for sub_x in flatten(x):
yield sub_x
yield from flatten(x)
else:
yield x