Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Any with Incomplete in distutils #12842

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Oct 17, 2024

Works towards #9550

I'm working on providing distutils stubs directly from setuptools (for Python 3.12+ support). And I wanted to start from as clean a slate as possible when copying typeshed's stubs. It includes not using Any where not necessary.

This comment has been minimized.

This comment has been minimized.

stdlib/distutils/core.pyi Outdated Show resolved Hide resolved
stdlib/distutils/log.pyi Outdated Show resolved Hide resolved
stubs/setuptools/setuptools/__init__.pyi Outdated Show resolved Hide resolved
stdlib/distutils/log.pyi Outdated Show resolved Hide resolved
stdlib/distutils/log.pyi Outdated Show resolved Hide resolved
Co-authored-by: Sebastian Rittau <[email protected]>
stdlib/distutils/log.pyi Outdated Show resolved Hide resolved
stdlib/distutils/core.pyi Outdated Show resolved Hide resolved
@Avasam Avasam requested a review from srittau October 18, 2024 15:14
Copy link
Contributor

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

@srittau srittau merged commit de4842d into python:main Oct 18, 2024
65 checks passed
@Avasam Avasam deleted the use-Incomplete-in-distutils branch October 18, 2024 16:29
@@ -101,7 +101,8 @@ def setup(
include_dirs: list[str] = ...,
password: str = ...,
fullname: str = ...,
**attrs,
# Custom Distributions could accept more params
**attrs: Any,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just came across this commit while investigating why pyright started warning that Type of "setup" is partially unknown since release of 1.1.375 a few weeks ago. Hopefully, this slight addition should fix it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like it would, yeah.

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.

3 participants