Skip to content

Conversation

@AlexWaygood
Copy link
Member

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:

from distutils.dist import Distribution as Distribution

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.)

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.)
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood
Copy link
Member Author

Merging so the "stubtest failed" bot doesn't create a duplicate issue in a few hours

@AlexWaygood AlexWaygood merged commit f6df5b5 into main Feb 23, 2023
@AlexWaygood AlexWaygood deleted the setuptools-stubtest branch February 23, 2023 22:38
AlexWaygood added a commit to AlexWaygood/stubdefaulter that referenced this pull request Feb 23, 2023
JelleZijlstra pushed a commit to JelleZijlstra/stubdefaulter that referenced this pull request Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daily tests failed on Thu Feb 23 2023

2 participants