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

Empty tuple instead of None for PlatformInfo version properties fallthrough #4754

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Nov 20, 2024

Summary of changes

Changed the WindowsSdkVersion, FrameworkVersion32 and FrameworkVersion64 properties of setuptools.msvc.PlatformInfo to return an empty tuple instead of None as a fallthrough case.

This also better matches the existing documentation which does not mention returning None.

In setuptools these are always used directly in iterations without ever checking for None or truthyness.

Fixes for #4744

Pull Request Checklist

…workVersion64`` properties of ``setuptools.msvc.PlatformInfo`` to return an empty `tuple` instead of `None` as a fallthrough case
@Avasam Avasam force-pushed the empty-tuple-instead-of-None-PlatformInfo-properties branch from 5767ad6 to 2b471c2 Compare November 20, 2024 04:37
@abravalheri abravalheri merged commit 8685c80 into pypa:main Nov 20, 2024
22 of 24 checks passed
@abravalheri
Copy link
Contributor

Thank you

@Avasam Avasam deleted the empty-tuple-instead-of-None-PlatformInfo-properties branch November 20, 2024 18:46
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