Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the freeze command #10410

Merged
merged 6 commits into from
Sep 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused type
  • Loading branch information
sbidoul committed Sep 21, 2021
commit 9c31cadf33ef6ef32f6cb4895e00fa11b1040358
15 changes: 2 additions & 13 deletions src/pip/_internal/operations/freeze.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import collections
import logging
import os
from typing import (
Container,
Dict,
Iterable,
Iterator,
List,
NamedTuple,
Optional,
Set,
Union,
)
from typing import Container, Dict, Iterable, Iterator, List, NamedTuple, Optional, Set

from pip._vendor.packaging.requirements import Requirement
from pip._vendor.packaging.utils import canonicalize_name
from pip._vendor.packaging.version import Version

Expand Down Expand Up @@ -231,7 +220,7 @@ class FrozenRequirement:
def __init__(
self,
name: str,
req: Union[str, Requirement],
req: str,
editable: bool,
comments: Iterable[str] = (),
) -> None:
Expand Down