ReadonlynodeOptionallineno1-indexed source line the node starts on.
Optionalcol_0-indexed byte offset (UTF-8) within lineno where the node starts.
Optionalend_1-indexed source line the node ends on.
Optionalend_0-indexed byte offset (UTF-8) within end_lineno where the node ends.
OptionalinlineOptional inline comment attached to this node.
Base interface for all AST nodes.
Remarks
Location fields are optional here because some synthetic/helper nodes (e.g. operator singletons like
Add,Load) are not required to carry source positions. Located narrows these to required fields for nodes that always originate from parsed source.