Add some distutils.dist.Distribution attrs (#2620)

This commit is contained in:
Maxim Kurnikov
2018-11-22 13:24:47 +03:00
committed by Sebastian Rittau
parent 89b06c833d
commit 59040f08a6
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
from distutils.cmd import Command
from typing import Optional, Text
class install(Command):
user: bool
prefix: Optional[Text]
home: Optional[Text]
root: Optional[Text]
install_lib: Optional[Text]
def initialize_options(self) -> None: ...
def finalize_options(self) -> None: ...
def run(self) -> None: ...

View File

@@ -1,7 +1,11 @@
# Stubs for distutils.dist
from distutils.cmd import Command
from typing import Any, Mapping, Optional
from typing import Any, Mapping, Optional, Dict, Tuple, Iterable, Text
class Distribution:
def __init__(self, attrs: Optional[Mapping[str, Any]] = ...) -> None: ...
def get_option_dict(self, command: str) -> Dict[str, Tuple[str, Text]]: ...
def parse_config_files(self, filenames: Optional[Iterable[Text]] = ...) -> None: ...
def get_command_obj(self, command: str, create: bool = ...) -> Optional[Command]: ...