Commit Graph
8 Commits
Author SHA1 Message Date
Hunter Hogan 1880490289 Change ast.MatchSingleton.value from Literal[True, False] to bool (#14400)
This is the only annotation in typeshed that uses `Literal[True, False]`. The most similar annotations are `Literal[True, 1]`. 371 annotations are `bool | None`.
2025-07-11 15:55:46 -07:00
Hunter Hogan 4c3560d3a9 add ast.Num.n as alias for ast.Num.value for backwards compatibility. (#14355) 2025-07-07 13:08:48 +02:00
Hunter Hogan 2f198bcfee Fix return type annotations for ast.parse (#14369) 2025-07-04 15:34:22 -07:00
Hunter Hogan d0f9f40e32 ast: Remove 3 TypeAlias. Fix identifier collision. (#14319) 2025-06-22 06:42:03 -07:00
Hunter Hogan ca543bf390 Add default value to ast.MatchStar.name (#14298) 2025-06-17 21:03:16 -07:00
Hunter Hogan cb37f1d7fb Update ast.alias _attributes for Python 3.9 (#14103) 2025-05-19 18:44:10 -07:00
Hunter Hogan cd98102c6c remove _Identifier: typing_extensions.TypeAlias = str (#13954) (#13964) 2025-05-08 20:40:29 -07:00
Hunter Hogan a4d3f6f0de Re-export ast.Match and ast.TypeAlias from _ast.pyi (#13926)
This matches what we do for all other AST nodes
2025-05-03 11:05:20 +01:00