Skip to content

Commit ff7caa3

Browse files
authored
setuptools&distutils: setup returns a Distribution (#11617)
`setup` returns a `Distribution`
1 parent 82d84c7 commit ff7caa3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/distutils/core.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ def setup(
5353
password: str = ...,
5454
fullname: str = ...,
5555
**attrs: Any,
56-
) -> None: ...
56+
) -> Distribution: ...
5757
def run_setup(script_name: str, script_args: list[str] | None = None, stop_after: str = "run") -> Distribution: ...

stubs/setuptools/setuptools/__init__.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def setup(
6969
password: str = ...,
7070
fullname: str = ...,
7171
**attrs: Any,
72-
) -> None: ...
72+
) -> Distribution: ...
7373

7474
class Command(_Command):
7575
command_consumes_arguments: bool

0 commit comments

Comments
 (0)