1 min read
pyssg.core.types
Foundational data-plane types.
Stdlib only. These are the vocabulary shared by every other core
module: stable logical identity (NodeId), per-aspect hashing keys
(Aspect/Digest), the fixed phase ladder (Phase), and the node/edge
kind enumerations.
class Phase(IntEnum)
Node lifecycle phases.
Order is the re-entry depth: a smaller value is deeper and therefore more
expensive to recompute. A change marks a node dirty-from(P); results up
to P - 1 stay valid and work restarts at P.
class NodeKind(Enum)
Kind of graph node.
class ConnectionKind(Enum)
Kind of resolved relation between nodes.
class SourceSpan
Half-inclusive source location for a parsed construct.