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

Treat deprecated aliases as equivalent in marker algebra #9342

Open
wants to merge 1 commit into
base: charlie/lower
Choose a base branch
from

Conversation

charliermarsh
Copy link
Member

Summary

This PR modifies our lowered representation such that any deprecated aliases are treated as "the same" marker in the algebra.

So, for example, we now recognize that this is impossible, despite the marker names being different:

typing-extensions ; platform.python_implementation == 'CPython' and python_implementation != 'CPython'

Similarly, we now recognize that this is just sys_platform == 'win32', despite the presence of both markers:

anyio ; sys_platform == 'win32' and sys.platform == 'win32'

@charliermarsh charliermarsh added the bug Something isn't working label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant