mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
remove #noqa: F401
This commit is contained in:
parent
630961c892
commit
f77b8ca051
39 changed files with 103 additions and 105 deletions
|
@ -18,8 +18,8 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|||
from pip._internal.utils.ui import open_spinner
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Tuple, Set, Iterable, Optional, List # noqa: F401
|
||||
from pip._internal.index import PackageFinder # noqa: F401
|
||||
from typing import Tuple, Set, Iterable, Optional, List
|
||||
from pip._internal.index import PackageFinder
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|||
from pip._internal.wheel import InvalidWheelFilename, Wheel
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional, Set, List, Any # noqa: F401
|
||||
from pip._internal.index import FormatControl # noqa: F401
|
||||
from typing import Optional, Set, List, Any
|
||||
from pip._internal.index import FormatControl
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -37,10 +37,10 @@ from pip._internal.utils.outdated import pip_version_check
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional, List, Tuple, Any # noqa: F401
|
||||
from optparse import Values # noqa: F401
|
||||
from pip._internal.cache import WheelCache # noqa: F401
|
||||
from pip._internal.req.req_set import RequirementSet # noqa: F401
|
||||
from typing import Optional, List, Tuple, Any
|
||||
from optparse import Values
|
||||
from pip._internal.cache import WheelCache
|
||||
from pip._internal.req.req_set import RequirementSet
|
||||
|
||||
__all__ = ['Command']
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|||
from pip._internal.utils.ui import BAR_TYPES
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Any, Callable, Dict, List, Optional, Union # noqa: F401
|
||||
from optparse import OptionParser, Values # noqa: F401
|
||||
from pip._internal.cli.parser import ConfigOptionParser # noqa: F401
|
||||
from typing import Any, Callable, Dict, List, Optional, Union
|
||||
from optparse import OptionParser, Values
|
||||
from pip._internal.cli.parser import ConfigOptionParser
|
||||
|
||||
|
||||
def raise_option_error(parser, option, msg):
|
||||
|
|
|
@ -17,7 +17,7 @@ from pip._internal.utils.misc import get_prog
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Tuple, List # noqa: F401
|
||||
from typing import Tuple, List
|
||||
|
||||
|
||||
__all__ = ["create_main_parser", "parse_command"]
|
||||
|
|
|
@ -20,8 +20,8 @@ from pip._internal.commands.wheel import WheelCommand
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import List, Type # noqa: F401
|
||||
from pip._internal.cli.base_command import Command # noqa: F401
|
||||
from typing import List, Type
|
||||
from pip._internal.cli.base_command import Command
|
||||
|
||||
commands_order = [
|
||||
InstallCommand,
|
||||
|
|
|
@ -29,7 +29,7 @@ from pip._internal.utils.misc import ensure_dir, enum
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Any, Dict, Iterable, List, NewType, Optional, Tuple
|
||||
)
|
||||
|
||||
|
|
|
@ -48,12 +48,12 @@ from pip._internal.utils.ui import DownloadProgressProvider
|
|||
from pip._internal.vcs import vcs
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Optional, Tuple, Dict, IO, Text, Union
|
||||
)
|
||||
from pip._internal.models.link import Link # noqa: F401
|
||||
from pip._internal.utils.hashes import Hashes # noqa: F401
|
||||
from pip._internal.vcs import AuthInfo # noqa: F401
|
||||
from pip._internal.models.link import Link
|
||||
from pip._internal.utils.hashes import Hashes
|
||||
from pip._internal.vcs import AuthInfo
|
||||
|
||||
try:
|
||||
import ssl # noqa
|
||||
|
|
|
@ -8,8 +8,8 @@ from pip._vendor.six import iteritems
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional # noqa: F401
|
||||
from pip._internal.req.req_install import InstallRequirement # noqa: F401
|
||||
from typing import Optional
|
||||
from pip._internal.req.req_install import InstallRequirement
|
||||
|
||||
|
||||
class PipError(Exception):
|
||||
|
|
|
@ -41,15 +41,15 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|||
from pip._internal.wheel import Wheel
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from logging import Logger # noqa: F401
|
||||
from typing import ( # noqa: F401
|
||||
from logging import Logger
|
||||
from typing import (
|
||||
Tuple, Optional, Any, List, Union, Callable, Set, Sequence,
|
||||
Iterable, MutableMapping
|
||||
)
|
||||
from pip._vendor.packaging.version import _BaseVersion # noqa: F401
|
||||
from pip._vendor.requests import Response # noqa: F401
|
||||
from pip._internal.req import InstallRequirement # noqa: F401
|
||||
from pip._internal.download import PipSession # noqa: F401
|
||||
from pip._vendor.packaging.version import _BaseVersion
|
||||
from pip._vendor.requests import Response
|
||||
from pip._internal.req import InstallRequirement
|
||||
from pip._internal.download import PipSession
|
||||
|
||||
SecureOrigin = Tuple[str, str, Optional[str]]
|
||||
BuildTag = Tuple[Any, ...] # either emply tuple or Tuple[int, str]
|
||||
|
|
|
@ -15,7 +15,7 @@ from pip._internal.utils.compat import WINDOWS, expanduser
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Any, Union, Dict, List, Optional # noqa: F401
|
||||
from typing import Any, Union, Dict, List, Optional
|
||||
|
||||
|
||||
# Application Directories
|
||||
|
|
|
@ -4,9 +4,9 @@ from pip._internal.utils.models import KeyBasedCompareMixin
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from pip._vendor.packaging.version import _BaseVersion # noqa: F401
|
||||
from pip._internal.models.link import Link # noqa: F401
|
||||
from typing import Any, Union # noqa: F401
|
||||
from pip._vendor.packaging.version import _BaseVersion
|
||||
from pip._internal.models.link import Link
|
||||
from typing import Any
|
||||
|
||||
|
||||
class InstallationCandidate(KeyBasedCompareMixin):
|
||||
|
|
|
@ -3,7 +3,7 @@ from pip._vendor.packaging.utils import canonicalize_name
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional, Set, FrozenSet # noqa: F401
|
||||
from typing import Optional, Set, FrozenSet
|
||||
|
||||
|
||||
class FormatControl(object):
|
||||
|
|
|
@ -11,8 +11,8 @@ from pip._internal.utils.models import KeyBasedCompareMixin
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional, Tuple, Union, Text # noqa: F401
|
||||
from pip._internal.index import HTMLPage # noqa: F401
|
||||
from typing import Optional, Tuple, Union, Text
|
||||
from pip._internal.index import HTMLPage
|
||||
|
||||
|
||||
class Link(KeyBasedCompareMixin):
|
||||
|
|
|
@ -14,8 +14,8 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from pip._internal.req.req_install import InstallRequirement # noqa: F401
|
||||
from typing import ( # noqa: F401
|
||||
from pip._internal.req.req_install import InstallRequirement
|
||||
from typing import (
|
||||
Any, Callable, Dict, Optional, Set, Tuple, List
|
||||
)
|
||||
|
||||
|
|
|
@ -20,11 +20,11 @@ from pip._internal.utils.misc import (
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Iterator, Optional, List, Container, Set, Dict, Tuple, Iterable, Union
|
||||
)
|
||||
from pip._internal.cache import WheelCache # noqa: F401
|
||||
from pip._vendor.pkg_resources import ( # noqa: F401
|
||||
from pip._internal.cache import WheelCache
|
||||
from pip._vendor.pkg_resources import (
|
||||
Distribution, Requirement
|
||||
)
|
||||
|
||||
|
|
|
@ -22,11 +22,11 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|||
from pip._internal.vcs import vcs
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Any, Optional # noqa: F401
|
||||
from pip._internal.req.req_install import InstallRequirement # noqa: F401
|
||||
from pip._internal.index import PackageFinder # noqa: F401
|
||||
from pip._internal.download import PipSession # noqa: F401
|
||||
from pip._internal.req.req_tracker import RequirementTracker # noqa: F401
|
||||
from typing import Any, Optional
|
||||
from pip._internal.req.req_install import InstallRequirement
|
||||
from pip._internal.index import PackageFinder
|
||||
from pip._internal.download import PipSession
|
||||
from pip._internal.req.req_tracker import RequirementTracker
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ from pip._internal.utils.compat import get_extension_suffixes
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Tuple, Callable, List, Optional, Union, Dict
|
||||
)
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ from pip._internal.exceptions import InstallationError
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Any, Tuple, Optional, List # noqa: F401
|
||||
from typing import Any, Tuple, Optional, List
|
||||
|
||||
|
||||
def _is_list_of_str(obj):
|
||||
|
|
|
@ -9,7 +9,7 @@ from pip._internal.utils.logging import indent_log
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import List, Sequence # noqa: F401
|
||||
from typing import List, Sequence
|
||||
|
||||
__all__ = [
|
||||
"RequirementSet", "InstallRequirement",
|
||||
|
|
|
@ -31,10 +31,10 @@ from pip._internal.vcs import vcs
|
|||
from pip._internal.wheel import Wheel
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Optional, Tuple, Set, Any, Union, Text, Dict,
|
||||
)
|
||||
from pip._internal.cache import WheelCache # noqa: F401
|
||||
from pip._internal.cache import WheelCache
|
||||
|
||||
|
||||
__all__ = [
|
||||
|
|
|
@ -22,13 +22,13 @@ from pip._internal.req.constructors import (
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Iterator, Tuple, Optional, List, Callable, Text
|
||||
)
|
||||
from pip._internal.req import InstallRequirement # noqa: F401
|
||||
from pip._internal.cache import WheelCache # noqa: F401
|
||||
from pip._internal.index import PackageFinder # noqa: F401
|
||||
from pip._internal.download import PipSession # noqa: F401
|
||||
from pip._internal.req import InstallRequirement
|
||||
from pip._internal.cache import WheelCache
|
||||
from pip._internal.index import PackageFinder
|
||||
from pip._internal.download import PipSession
|
||||
|
||||
ReqFileLines = Iterator[Tuple[int, Text]]
|
||||
|
||||
|
|
|
@ -41,15 +41,15 @@ from pip._internal.vcs import vcs
|
|||
from pip._internal.wheel import move_wheel_files
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Optional, Iterable, List, Union, Any, Text, Sequence, Dict
|
||||
)
|
||||
from pip._internal.build_env import BuildEnvironment # noqa: F401
|
||||
from pip._internal.cache import WheelCache # noqa: F401
|
||||
from pip._internal.index import PackageFinder # noqa: F401
|
||||
from pip._vendor.pkg_resources import Distribution # noqa: F401
|
||||
from pip._vendor.packaging.specifiers import SpecifierSet # noqa: F401
|
||||
from pip._vendor.packaging.markers import Marker # noqa: F401
|
||||
from pip._internal.build_env import BuildEnvironment
|
||||
from pip._internal.cache import WheelCache
|
||||
from pip._internal.index import PackageFinder
|
||||
from pip._vendor.pkg_resources import Distribution
|
||||
from pip._vendor.packaging.specifiers import SpecifierSet
|
||||
from pip._vendor.packaging.markers import Marker
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -9,8 +9,8 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|||
from pip._internal.wheel import Wheel
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional, List, Tuple, Dict, Iterable # noqa: F401
|
||||
from pip._internal.req.req_install import InstallRequirement # noqa: F401
|
||||
from typing import Optional, List, Tuple, Dict, Iterable
|
||||
from pip._internal.req.req_install import InstallRequirement
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -10,9 +10,9 @@ from pip._internal.utils.temp_dir import TempDirectory
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Set, Iterator # noqa: F401
|
||||
from pip._internal.req.req_install import InstallRequirement # noqa: F401
|
||||
from pip._internal.models.link import Link # noqa: F401
|
||||
from typing import Set, Iterator
|
||||
from pip._internal.req.req_install import InstallRequirement
|
||||
from pip._internal.models.link import Link
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -25,15 +25,15 @@ from pip._internal.utils.packaging import check_dist_requires_python
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional, DefaultDict, List, Set # noqa: F401
|
||||
from pip._internal.download import PipSession # noqa: F401
|
||||
from pip._internal.req.req_install import InstallRequirement # noqa: F401
|
||||
from pip._internal.index import PackageFinder # noqa: F401
|
||||
from pip._internal.req.req_set import RequirementSet # noqa: F401
|
||||
from pip._internal.operations.prepare import ( # noqa: F401
|
||||
from typing import Optional, DefaultDict, List, Set
|
||||
from pip._internal.download import PipSession
|
||||
from pip._internal.req.req_install import InstallRequirement
|
||||
from pip._internal.index import PackageFinder
|
||||
from pip._internal.req.req_set import RequirementSet
|
||||
from pip._internal.operations.prepare import (
|
||||
DistAbstraction, RequirementPreparer
|
||||
)
|
||||
from pip._internal.cache import WheelCache # noqa: F401
|
||||
from pip._internal.cache import WheelCache
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -13,9 +13,7 @@ from pip._internal.utils.compat import WINDOWS, expanduser
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
List, Union
|
||||
)
|
||||
from typing import List, Union
|
||||
|
||||
|
||||
def user_cache_dir(appname):
|
||||
|
|
|
@ -14,7 +14,7 @@ from pip._vendor.six import text_type
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Tuple, Text # noqa: F401
|
||||
from typing import Tuple, Text
|
||||
|
||||
try:
|
||||
import ipaddress
|
||||
|
|
|
@ -12,7 +12,7 @@ from pip import __version__ as current_version
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Any, Optional # noqa: F401
|
||||
from typing import Any, Optional
|
||||
|
||||
|
||||
class PipDeprecationWarning(Warning):
|
||||
|
|
|
@ -6,7 +6,7 @@ import sys
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import List, Tuple, Text # noqa: F401
|
||||
from typing import List, Tuple, Text
|
||||
|
||||
BOMS = [
|
||||
(codecs.BOM_UTF8, 'utf8'),
|
||||
|
|
|
@ -7,7 +7,7 @@ import warnings
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional, Tuple # noqa: F401
|
||||
from typing import Optional, Tuple
|
||||
|
||||
|
||||
def glibc_version_string():
|
||||
|
|
|
@ -11,14 +11,14 @@ from pip._internal.utils.misc import read_chunks
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Dict, List, BinaryIO, NoReturn, Iterator
|
||||
)
|
||||
from pip._vendor.six import PY3
|
||||
if PY3:
|
||||
from hashlib import _Hash # noqa: F401
|
||||
from hashlib import _Hash
|
||||
else:
|
||||
from hashlib import _hash as _Hash # noqa: F401
|
||||
from hashlib import _hash as _Hash
|
||||
|
||||
|
||||
# The recommended hash algo of the moment. Change this whenever the state of
|
||||
|
|
|
@ -43,13 +43,13 @@ else:
|
|||
from io import StringIO
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Optional, Tuple, Iterable, List, Match, Union, Any, Mapping, Text,
|
||||
AnyStr, Container
|
||||
)
|
||||
from pip._vendor.pkg_resources import Distribution # noqa: F401
|
||||
from pip._internal.models.link import Link # noqa: F401
|
||||
from pip._internal.utils.ui import SpinnerInterface # noqa: F401
|
||||
from pip._vendor.pkg_resources import Distribution
|
||||
from pip._internal.models.link import Link
|
||||
from pip._internal.utils.ui import SpinnerInterface
|
||||
|
||||
|
||||
__all__ = ['rmtree', 'display_path', 'backup_dir',
|
||||
|
|
|
@ -16,9 +16,9 @@ from pip._internal.utils.misc import ensure_dir, get_installed_version
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
import optparse # noqa: F401
|
||||
from typing import Any, Dict # noqa: F401
|
||||
from pip._internal.download import PipSession # noqa: F401
|
||||
import optparse
|
||||
from typing import Any, Dict
|
||||
from pip._internal.download import PipSession
|
||||
|
||||
|
||||
SELFCHECK_DATE_FMT = "%Y-%m-%dT%H:%M:%SZ"
|
||||
|
|
|
@ -12,9 +12,9 @@ from pip._internal.utils.misc import display_path
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional # noqa: F401
|
||||
from email.message import Message # noqa: F401
|
||||
from pip._vendor.pkg_resources import Distribution # noqa: F401
|
||||
from typing import Optional
|
||||
from email.message import Message
|
||||
from pip._vendor.pkg_resources import Distribution
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -21,7 +21,7 @@ In pip, all static-typing related imports should be guarded as follows:
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ... # noqa: F401
|
||||
from typing import ...
|
||||
|
||||
Ref: https://github.com/python/mypy/issues/3216
|
||||
"""
|
||||
|
|
|
@ -21,7 +21,7 @@ from pip._internal.utils.misc import format_size
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Any, Iterator, IO # noqa: F401
|
||||
from typing import Any, Iterator, IO
|
||||
|
||||
try:
|
||||
from pip._vendor import colorama
|
||||
|
|
|
@ -16,10 +16,10 @@ from pip._internal.utils.misc import (
|
|||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Any, Dict, Iterable, List, Mapping, Optional, Text, Tuple, Type
|
||||
)
|
||||
from pip._internal.utils.ui import SpinnerInterface # noqa: F401
|
||||
from pip._internal.utils.ui import SpinnerInterface
|
||||
|
||||
AuthInfo = Tuple[Optional[str], Optional[str]]
|
||||
|
||||
|
|
|
@ -41,19 +41,19 @@ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|||
from pip._internal.utils.ui import open_spinner
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import ( # noqa: F401
|
||||
from typing import (
|
||||
Dict, List, Optional, Sequence, Mapping, Tuple, IO, Text, Any,
|
||||
Union, Iterable
|
||||
)
|
||||
from pip._vendor.packaging.requirements import Requirement # noqa: F401
|
||||
from pip._internal.req.req_install import InstallRequirement # noqa: F401
|
||||
from pip._internal.download import PipSession # noqa: F401
|
||||
from pip._internal.index import FormatControl, PackageFinder # noqa: F401
|
||||
from pip._internal.operations.prepare import ( # noqa: F401
|
||||
from pip._vendor.packaging.requirements import Requirement
|
||||
from pip._internal.req.req_install import InstallRequirement
|
||||
from pip._internal.download import PipSession
|
||||
from pip._internal.index import FormatControl, PackageFinder
|
||||
from pip._internal.operations.prepare import (
|
||||
RequirementPreparer
|
||||
)
|
||||
from pip._internal.cache import WheelCache # noqa: F401
|
||||
from pip._internal.pep425tags import Pep425Tag # noqa: F401
|
||||
from pip._internal.cache import WheelCache
|
||||
from pip._internal.pep425tags import Pep425Tag
|
||||
|
||||
InstalledCSVRow = Tuple[str, ...]
|
||||
|
||||
|
|
Loading…
Reference in a new issue