Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/pip/_internal/cli/autocompletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def autocomplete() -> None:
options = []

# subcommand
subcommand_name = None # type: Optional[str]
subcommand_name: Optional[str] = None
for word in cwords:
if word in subcommands:
subcommand_name = word
Expand Down
6 changes: 3 additions & 3 deletions src/pip/_internal/cli/base_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@


class Command(CommandContextMixIn):
usage = None # type: str
ignore_require_venv = False # type: bool
usage: str = ""
ignore_require_venv: bool = False

def __init__(self, name: str, summary: str, isolated: bool = False) -> None:
super().__init__()
Expand All @@ -58,7 +58,7 @@ def __init__(self, name: str, summary: str, isolated: bool = False) -> None:
isolated=isolated,
)

self.tempdir_registry = None # type: Optional[TempDirRegistry]
self.tempdir_registry: Optional[TempDirRegistry] = None

# Commands should add options to this option group
optgroup_name = f"{self.name.capitalize()} Options"
Expand Down
Loading