diff --git a/requirements.txt b/requirements.txt index 725e139..2dd1724 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ numpy==1.25.2 pytest==7.4.0 pytest-cov==4.1.0 -ruff==0.0.282 +ruff==0.0.287 diff --git a/src/parameterize_jobs/parameterize_jobs.py b/src/parameterize_jobs/parameterize_jobs.py index a513ef7..d9868d7 100644 --- a/src/parameterize_jobs/parameterize_jobs.py +++ b/src/parameterize_jobs/parameterize_jobs.py @@ -130,8 +130,7 @@ def __mul__(self, other): def __iter__(self): for c in self._components: - for s in c: - yield s + yield from c def __len__(self): return sum([len(c) for c in self._components])