mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add some distutils.dist.Distribution attrs (#2620)
This commit is contained in:
committed by
Sebastian Rittau
parent
89b06c833d
commit
59040f08a6
@@ -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: ...
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user