You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of v3.6.2, we fill in the end_lineno and end_col_offset info in the global postprocess pass (copying it from reference nodes), but that's literally the only thing we do with this information at this point.
This was needed to get Python 3.11+ support working, because as of Python 3.11, the compiler now includes an AST validator (which is a good thing!) that requires e.g. that end_lineno >= lineno.
Python 3.8 added the
end_lineno
andend_col_offset
fields to AST nodes that havelineno
andcol_offset
.Specs in the official documentation.
We should probably worry about these anywhere we handle source location info.
The text was updated successfully, but these errors were encountered: