itacart.topology.deflect

itacart.topology.deflect(cell, direction)[source]

Resolve a step whose lexical target falls outside its quadrant’s range.

Takes a true compass direction, like get_neighbor(). The lattice-frame worker behind it is _deflect_lattice().

Raises:

NonExistentCellError – If any cell of the index names no cell. The predicate is the arbiter and the contract ends there: a spelling it denies is refused rather than answered for the cell it would otherwise fold onto.

Parameters:
  • cell (str)

  • direction (Literal['N', 'S', 'E', 'W', 'NE', 'NW', 'SE', 'SW'])

Return type:

str | None