-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SequenceValue for heterogeneous sequences (#515)
PEP 646 requires that we support heterogeneous, variable-length sequences like tuple[int, *tuple[str, ...]]. This requires replacing the SequenceIncompleteValue class, so we're doing this in steps: 1. Add SequenceValue and accept it in all places that currently accept SequenceIncompleteValue, but don't infer it in any existing contexts (this PR). 2. Update internal usages of SequenceIncompleteValue to also accept SequenceValue. 3. Infer only SequenceValue inside pyanalyze. 4. Remove internal usage of SequenceIncompleteValue. 5. Drop SequenceIncompleteValue.
- Loading branch information
1 parent
bf6e792
commit 1e9a823
Showing
14 changed files
with
757 additions
and
38 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
Oops, something went wrong.