Skip to content

Commit

Permalink
distutils: Add some return types for setuptools to pass ANN201 (#12841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Oct 18, 2024
1 parent c6affbb commit 8113832
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions stdlib/distutils/command/bdist_msi.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion stdlib/distutils/command/build_py.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = True): ...
def get_outputs(self, include_bytecode: bool = True) -> list[str]: ...
def build_module(self, module, module_file, package): ...
def build_modules(self) -> None: ...
def build_packages(self) -> None: ...
Expand Down

0 comments on commit 8113832

Please sign in to comment.