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

Correct editable metadata hook return type to str #209

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ichard26
Copy link
Member

prepare_metadata_for_build_wheel was initially typed to return Optional[str] just like the editable metadata hook, but it got changed to str during review. However, the editable hook's return type was never corrected. This seems to be an oversight as I can't find anything in the PEP 517 or 660 specifications allowing these hooks to return None.

`prepare_metadata_for_build_wheel` was initially typed to return Optional[str] just like the editable metadata hook, but it got changed to `str` during review. However, the editable hook's return type was never corrected. This seems to be an oversight as I can't find anything in the PEP 517 or 660 specifications allowing these hooks to return None.
@matthewhughes934
Copy link

You could probably drop Python 3.7 support to make the checks green again. It looks like it was previously dropped with 69ed8b1 but that was reverted 9cf1649 it seems it was kept because pip also supported it at the time (context: #167 (comment)) but pip has since dropped support for it pypa/pip@1dbd717, see also #168

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.

2 participants