Skip to content

Commit

Permalink
InstallRequirement.extras is expected to be a set anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
richafrank committed Oct 4, 2021
1 parent d720fe6 commit a69540d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions piptools/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def combine_install_requirements(
if combined_ireq.req is not None and ireq.req is not None:
combined_ireq.req.specifier &= ireq.req.specifier
combined_ireq.constraint &= ireq.constraint
# Return a sorted, de-duped tuple of extras
combined_ireq.extras = tuple(sorted({*combined_ireq.extras, *ireq.extras}))
combined_ireq.extras = {*combined_ireq.extras, *ireq.extras}

# InstallRequirements objects are assumed to come from only one source, and
# so they support only a single comes_from entry. This function breaks this
Expand Down

0 comments on commit a69540d

Please sign in to comment.