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

Add SequenceValue for heterogeneous sequences #515

Merged
merged 4 commits into from
Apr 11, 2022
Merged

Add SequenceValue for heterogeneous sequences #515

merged 4 commits into from
Apr 11, 2022

Commits on Apr 11, 2022

  1. Add SequenceValue for heterogeneous sequences

    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.
    JelleZijlstra committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    46472a2 View commit details
    Browse the repository at this point in the history
  2. formatting fixes

    JelleZijlstra committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    4c14cf8 View commit details
    Browse the repository at this point in the history
  3. Fix 3.6

    JelleZijlstra committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    934b848 View commit details
    Browse the repository at this point in the history
  4. extra f

    JelleZijlstra committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    339e165 View commit details
    Browse the repository at this point in the history