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
JiachenSmith authored and richafrank committed Apr 18, 2023
1 parent c0bb654 commit 47a200f
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 47a200f

Please sign in to comment.