-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Sebastian Rittau <[email protected]>
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
@@ -101,7 +101,8 @@ def setup( | |||
include_dirs: list[str] = ..., | |||
password: str = ..., | |||
fullname: str = ..., | |||
**attrs, | |||
# Custom Distributions could accept more params | |||
**attrs: Any, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.