Bug report
Unlike AST nodes for 3.10 match syntax, AST nodes for 3.12 type param syntax (PEP 695) do not require end_lineno nor end_col_offset.
For 3.10 match syntax, this question was discussed here, and it was decided to require them.
Context: see end_lineno and end_col_offset creation in 3.8 by #11605.
|
type_param = TypeVar(identifier name, expr? bound) |
|
| ParamSpec(identifier name) |
|
| TypeVarTuple(identifier name) |
|
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset) |
Your environment
Python 3.12.0b3
Linked PRs
Bug report
Unlike AST nodes for 3.10 match syntax, AST nodes for 3.12 type param syntax (PEP 695) do not require
end_linenonorend_col_offset.For 3.10 match syntax, this question was discussed here, and it was decided to require them.
Context: see end_lineno and end_col_offset creation in 3.8 by #11605.
cpython/Parser/Python.asdl
Lines 148 to 151 in bb578a0
Your environment
Python 3.12.0b3
Linked PRs
end_{lineno,col_offset}required ontype_paramnodes #106224end_{lineno,col_offset}required ontype_paramnodes (GH-106224) #106295