Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent 644ac8a commit 39cbff8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions piptools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@

class PackageMetadata(Protocol):
@overload
def get_all(self, name: str, failobj: None = None) -> list[Any] | None:
...
def get_all(self, name: str, failobj: None = None) -> list[Any] | None: ...

@overload
def get_all(self, name: str, failobj: _T) -> list[Any] | _T:
...
def get_all(self, name: str, failobj: _T) -> list[Any] | _T: ...


@dataclass
Expand Down
6 changes: 3 additions & 3 deletions piptools/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,9 @@ def __init__(
self.existing_constraints = existing_constraints

# Categorize InstallRequirements into sets by key
constraints_sets: DefaultDict[
str, set[InstallRequirement]
] = collections.defaultdict(set)
constraints_sets: DefaultDict[str, set[InstallRequirement]] = (
collections.defaultdict(set)
)
for ireq in constraints:
constraints_sets[key_from_ireq(ireq)].add(ireq)
# Collapse each set of InstallRequirements using combine_install_requirements
Expand Down

0 comments on commit 39cbff8

Please sign in to comment.