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. |
|
Okay, implemented in scikit-build/scikit-build-core#1202. It's a little odd that we have to |
|
Indeed, from what I could find, only pyright has implemented support for that so far. mypy and ty haven't (yet), idk about other checkers. So type-ignore it is for now, since it doesn't negatively affect the end result. |



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