Class Position (2.9.2)

Position(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The position of a byte within the text.

Attributes

NameDescription
line int
The line, starting with 1, where the byte is positioned.
column int
The column within the line, starting with 1, where the byte is positioned. This is a byte index even though the text is UTF-8.