mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +08:00
distutils: Add some return types for setuptools to pass ANN201 (#12841)
This commit is contained in:
@@ -4,15 +4,15 @@ from typing import Any, ClassVar, Literal
|
||||
from ..cmd import Command
|
||||
|
||||
if sys.platform == "win32":
|
||||
from msilib import Dialog
|
||||
from msilib import Control, Dialog
|
||||
|
||||
class PyDialog(Dialog):
|
||||
def __init__(self, *args, **kw) -> None: ...
|
||||
def title(self, title) -> None: ...
|
||||
def back(self, title, next, name: str = "Back", active: bool | Literal[0, 1] = 1): ...
|
||||
def cancel(self, title, next, name: str = "Cancel", active: bool | Literal[0, 1] = 1): ...
|
||||
def next(self, title, next, name: str = "Next", active: bool | Literal[0, 1] = 1): ...
|
||||
def xbutton(self, name, title, next, xpos): ...
|
||||
def back(self, title, next, name: str = "Back", active: bool | Literal[0, 1] = 1) -> Control: ...
|
||||
def cancel(self, title, next, name: str = "Cancel", active: bool | Literal[0, 1] = 1) -> Control: ...
|
||||
def next(self, title, next, name: str = "Next", active: bool | Literal[0, 1] = 1) -> Control: ...
|
||||
def xbutton(self, name, title, next, xpos) -> Control: ...
|
||||
|
||||
class bdist_msi(Command):
|
||||
description: str
|
||||
|
||||
@@ -32,7 +32,7 @@ class build_py(Command):
|
||||
def find_all_modules(self): ...
|
||||
def get_source_files(self): ...
|
||||
def get_module_outfile(self, build_dir, package, module): ...
|
||||
def get_outputs(self, include_bytecode: bool | Literal[0, 1] = 1): ...
|
||||
def get_outputs(self, include_bytecode: bool | Literal[0, 1] = 1) -> list[str]: ...
|
||||
def build_module(self, module, module_file, package): ...
|
||||
def build_modules(self) -> None: ...
|
||||
def build_packages(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user