Skip to content

Commit f6df5b5

Browse files
authored
Remove a default value in distutils (#9800)
Fixes #9799. Stubtest started failing on our `setuptools` stubs because of a default value added to our stdlib `distutils` stubs. The reason for this is because our `setuptools` stubs erroneously claim here that the `setuptools._distutils.core.Distribution` class is the same as the stdlib `distutils.dist.Distribution` class: https://github.com/python/typeshed/blob/06755e10ba0d39e7e4c18fcc2663d9da564a71ad/stubs/setuptools/setuptools/_distutils/core.pyi#L3 In actual fact, they're not, and they have different default values for this parameter. But reverting the addition of the default value is the simplest short-term fix for now. (An alternative fix would be to just merge #9795.)
1 parent 1d2ae25 commit f6df5b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/distutils/dist.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Distribution:
103103
def get_command_packages(self): ...
104104
def get_command_class(self, command): ...
105105
def reinitialize_command(self, command, reinit_subcommands: int = 0): ...
106-
def announce(self, msg, level=2) -> None: ...
106+
def announce(self, msg, level: int = ...) -> None: ...
107107
def run_commands(self) -> None: ...
108108
def run_command(self, command) -> None: ...
109109
def has_pure_modules(self): ...

0 commit comments

Comments
 (0)