-
Notifications
You must be signed in to change notification settings - Fork 995
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat deprecated aliases as equivalent in marker algebra (#9342)
## 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' ```
- Loading branch information
1 parent
1068630
commit df844e1
Showing
3 changed files
with
49 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters