Skip to content

Commit

Permalink
Remove mypy: strict-optional=False from base_command.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjerdonek committed Aug 8, 2019
1 parent 9b1ece3 commit 234ef43
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/pip/_internal/cli/base_command.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""Base Command class, and related routines"""

# The following comment should be removed at some point in the future.
# mypy: strict-optional=False

from __future__ import absolute_import, print_function

import logging
Expand Down Expand Up @@ -39,7 +36,7 @@
from pip._internal.utils.virtualenv import running_under_virtualenv

if MYPY_CHECK_RUNNING:
from typing import Optional, List, Tuple, Any
from typing import List, Tuple, Any
from optparse import Values

__all__ = ['Command']
Expand All @@ -48,15 +45,14 @@


class Command(object):
name = None # type: Optional[str]
usage = None # type: Optional[str]
usage = None # type: str
ignore_require_venv = False # type: bool

def __init__(self, name, summary, isolated=False):
# type: (str, str, bool) -> None
parser_kw = {
'usage': self.usage,
'prog': '%s %s' % (get_prog(), self.name),
'prog': '%s %s' % (get_prog(), name),
'formatter': UpdatingDefaultsHelpFormatter(),
'add_help_option': False,
'name': name,
Expand Down

0 comments on commit 234ef43

Please sign in to comment.