Skip to content
YosoiDocs

AccessibilityCoordinate

yosoi.outcomes.AccessibilityCoordinate

class AccessibilityCoordinate(ImmutableModel):

Accessibility node identity scoped to an immutable snapshot epoch.

Attributes: document_epoch: Snapshot epoch needed to interpret the node ID. node_id: Retained nonblank accessibility node identity; no live tree membership is checked.

Source: python/yosoi/outcomes.py:318

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

document_epoch: DocumentEpoch
node_id: str
@classmethod
def try_new(cls, document_epoch: DocumentEpoch, node_id: str) -> Self:

Validate accessibility node identity within a supplied epoch.

Args: document_epoch: Immutable accessibility-tree snapshot epoch. node_id: Nonblank identity whose original spelling is retained.

Returns: A coordinate without checking node membership in a live tree.

Raises: LocatorError: The node identity is blank or supplied values are invalid.

Source: python/yosoi/outcomes.py:339