-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Document PEP 695 #103921
Copy link
Copy link
Closed
Labels
3.12only security fixesonly security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtopic-typing
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtopic-typing
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