We should document PEP-695 for Python 3.12 (issue #103763, PR #103764 for implementation). I am leaving docs out of the PR to avoid complicating an already huge PR with a tight deadline, but let's start thinking about what we need to document:
Linked PRs
We should document PEP-695 for Python 3.12 (issue #103763, PR #103764 for implementation). I am leaving docs out of the PR to avoid complicating an already huge PR with a tight deadline, but let's start thinking about what we need to document:
ast.rsttyping.rstshould list the PEPtyping.rstshould mention thatTypeVargained aninfer_varianceargument and that it now supports lazily evaluated bounds/constraintstyping.rstshould use the new syntaxtyping.rstshould document the newTypeAliasTypetyping.TypeAliasshould be mentioned as deprecated (including in the deprecation timeline at the bottom oftyping.rst), and any examples of type aliases should be updated to use the new syntaxdis.rst.dis.disdocs should mention new contexts where nested code objects can appear. TheCALL_INTRINSIC_1and 2 opcodes should mention the new intrinsics.Linked PRs
astmodule docs #105093astmodule docs (GH-105093) #105101