-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
setuptools.setup Complete partially Unknown method and fix Command type variance issue
#15161
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
setuptools.setup Complete partially Unknown method and fix Command type variance issue
#15161
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
|
Hopefully this fixes the issue with |
|
I don't think it will fix the return type. We might need an overload for the case where |
|
Ugh, doing an overload here will be annoying, but maybe I'll have to. I don't think I can even use non-closed TypedDict unpacking (from https://peps.python.org/pep-0728/) here.
I think pyright takes into account the default assignement whereas the other two don't |
|
Yes, it seems to me that the type checkers should use the default here. |
|
Idk how I managed to misread it and post a screenshots. But actually isn't it showing that the return type isn't I just checked https://github.com/scikit-build/scikit-build-core/blob/main/src/scikit_build_core/setuptools/wrapper.py and the issue there is that @henryiii Making So I think that's actually a true positive. |



Resolves #15146 (comment) introduced in that same PR.