fix type of distutils.cmd.Command.sub_commands (#3736)

This commit is contained in:
Romain
2020-02-14 11:22:43 +01:00
committed by GitHub
parent 39008d51c1
commit dd945ee380

View File

@@ -5,7 +5,7 @@ from abc import abstractmethod
from distutils.dist import Distribution
class Command:
sub_commands: List[Tuple[str, Union[Callable[[], bool], str, None]]]
sub_commands: List[Tuple[str, Optional[Callable[[Command], bool]]]]
def __init__(self, dist: Distribution) -> None: ...
@abstractmethod
def initialize_options(self) -> None: ...