Powercontextsourcesmodels

SourceLineRangeLocator

Inclusive, one-based lines in the exact text supplied by the Source adapter.

Attributes

attributemodel_config
= ConfigDict(extra='forbid', frozen=True)
attributekindLiteral['line_range']
= 'line_range'
attributestart_lineStrictInt
= Field(ge=1)
attributeend_lineStrictInt
= Field(ge=1)
attributeheading_pathstr | None
= Field(default=None, max_length=MAX_SOURCE_HEADING_PATH_LENGTH, exclude_if=(lambda value: value is None))

Functions

funcvalidate_span() -> SourceLineRangeLocator

Returns

powercontext.sources.models.SourceLineRangeLocator

On this page