Skip to content

Commit

Permalink
Use generator instead of list
Browse files Browse the repository at this point in the history
Fixed by running `ruff --select UP027 --fix .`:
UP027 [*] Replace unpacked list comprehension with a generator expression
  • Loading branch information
DimitriPapadopoulos committed Nov 22, 2023
1 parent a575433 commit b2bb9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg_resources/tests/test_working_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ def parametrize_test_working_set_resolve(*test_list):
requirements,
expected1,
expected2,
) = [
) = (
strip_comments(s.lstrip())
for s in textwrap.dedent(test).lstrip().split('\n\n', 5)
]
)
installed_dists = list(parse_distributions(installed_dists))
installable_dists = list(parse_distributions(installable_dists))
requirements = list(pkg_resources.parse_requirements(requirements))
Expand Down

0 comments on commit b2bb9f7

Please sign in to comment.