text_lint.results.cursor.ResultTreeCursor

class text_lint.results.cursor.ResultTreeCursor[source]

Bases: object

Represents a location within a ResultForest instance.

__init__() None[source]

Initialize ResultTreeCursor instances.

clone() ResultTreeCursor[source]

Create a nested copy of all trees at the specified location.

Returns:

A cloned copy of the current cursor object.

Return type:

ResultTreeCursor

flatten() None[source]

Merge the current location’s tree groups.

increment_depth() None[source]

Increase tree depth by one set of nodes.

property location: List[ResultTree | AliasResultForestCursor]

Return the current location within the ResultForest instance.

unique() None[source]

Select the first unique value for each tree at the current location.