Skip to content

Fully support PEP 695 #757

Open
Open

Description

@evhub

We already mostly support PEP 695, except for:

Activity

  1. added this to the v3.0.2 milestone on May 28, 2023
  2. changed the title [-]Fully support [PEP 695](https://peps.python.org/pep-0695/)[/-] [+]Fully support PEP 695[/+] on May 28, 2023
  3. evhub commented on May 28, 2023

    @evhub
    OwnerAuthor

    I don't think lazy evaluation of type statements is something we can do while also keeping type checkers happy, so probably we'll just stick with the existing string-based solution (though since we'll use the literal syntax on 3.12, we'll still get the lazy evaluation there).

  4. removed this from the v3.0.2 milestone on May 29, 2023
  5. evhub commented on May 29, 2023

    @evhub
    OwnerAuthor

    Tuple constraint syntax should work now, but I'll probably wait until 3.12 is released to get all the literal syntax working.

  6. added a commit that references this issue on May 29, 2023
  7. added this to the v3.0.4 milestone on Oct 22, 2023
  8. modified the milestones: v3.0.4, v3.1.0 on Nov 24, 2023
  9. evhub commented on Feb 25, 2024

    @evhub
    OwnerAuthor

    This is basically done except that it can't really be tested yet because mypy still doesn't support it.

  10. removed this from the v3.1.0 milestone on Feb 25, 2024
  11. evhub commented on Mar 21, 2024

    @evhub
    OwnerAuthor

    Actually, we need to also emit literal syntax for def f[T](...): ... as well, since if we don't it messes up typing.overload declarations by inserting the typevar declarations in-between.

  12. added this to the v3.1.1 milestone on Mar 21, 2024
  13. added a commit that references this issue on Mar 21, 2024
  14. evhub commented on Apr 15, 2024

    @evhub
    OwnerAuthor

    I think the only thing remaining now is we're just waiting on mypy to support this so we can test it on 3.12.

  15. modified the milestones: v3.1.1, v3.1.2 on Jun 9, 2024
  16. added a commit that references this issue on Jun 9, 2024
  17. evhub commented on Sep 1, 2024

    @evhub
    OwnerAuthor

    We're waiting for infer_variance support here: python/mypy#15238

  18. modified the milestones: v3.1.2, v3.1.3 on Sep 1, 2024
  19. evhub commented on Oct 23, 2024

    @evhub
    OwnerAuthor

    It looks like this has now been moved to here: python/mypy#17811

  20. modified the milestones: v3.2.0, v3.2.1 on Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions