diff options
Diffstat (limited to 'src/pip/_internal/commands')
-rw-r--r-- | src/pip/_internal/commands/debug.py | 4 | ||||
-rw-r--r-- | src/pip/_internal/commands/install.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pip/_internal/commands/debug.py b/src/pip/_internal/commands/debug.py index 480c0444d..ead5119a2 100644 --- a/src/pip/_internal/commands/debug.py +++ b/src/pip/_internal/commands/debug.py @@ -4,7 +4,7 @@ import os import sys from optparse import Values from types import ModuleType -from typing import Dict, List, Optional +from typing import Any, Dict, List, Optional import pip._vendor from pip._vendor.certifi import where @@ -24,7 +24,7 @@ logger = logging.getLogger(__name__) def show_value(name, value): - # type: (str, Optional[str]) -> None + # type: (str, Any) -> None logger.info('%s: %s', name, value) diff --git a/src/pip/_internal/commands/install.py b/src/pip/_internal/commands/install.py index c4273eda9..dc637d876 100644 --- a/src/pip/_internal/commands/install.py +++ b/src/pip/_internal/commands/install.py @@ -49,7 +49,7 @@ def get_check_binary_allowed(format_control): # type: (FormatControl) -> BinaryAllowedPredicate def check_binary_allowed(req): # type: (InstallRequirement) -> bool - canonical_name = canonicalize_name(req.name) + canonical_name = canonicalize_name(req.name or "") allowed_formats = format_control.get_allowed_formats(canonical_name) return "binary" in allowed_formats |