Skip to content

Commit

Permalink
Use 'yield from' to satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jun 5, 2024
1 parent 1c7d4ce commit ea0ec58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions check_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,10 @@ def remove_from_labels(self, label):
) from exc

def get_labels(self):
for label in self.labels:
yield label
yield from self.labels

def get_reviews(self):
for review in self.reviews:
yield review
yield from self.reviews

@pytest.mark.parametrize(
"value, labels, reviews, missing_approvals_label, exp",
Expand Down

0 comments on commit ea0ec58

Please sign in to comment.