Skip to content

Commit

Permalink
Always use frozenset
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed May 27, 2020
1 parent b8404fd commit 9ee19a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip/_internal/resolution/resolvelib/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _make_candidate_from_dist(
def _make_candidate_from_link(
self,
link, # type: Link
extras, # type: Set[str]
extras, # type: FrozenSet[str]
parent, # type: InstallRequirement
name, # type: Optional[str]
version, # type: Optional[_BaseVersion]
Expand Down Expand Up @@ -239,7 +239,7 @@ def make_requirement_from_install_req(self, ireq):
return SpecifierRequirement(ireq)
cand = self._make_candidate_from_link(
ireq.link,
extras=set(ireq.extras),
extras=frozenset(ireq.extras),
parent=ireq,
name=canonicalize_name(ireq.name) if ireq.name else None,
version=None,
Expand Down

0 comments on commit 9ee19a1

Please sign in to comment.