Skip to content

bloqade.gemini.common.validation.recursion.format_cycle

← Module overview

functionformat_cyclesource

bloqade.gemini.common.validation.recursion.format_cycle

def format_cycle(cycle: Cycle | list[ir.Method]) -> str

Render a cycle as a -> b -> a, closing the loop for readability.

A cycle reached from elsewhere also reports the route, as b -> b (reached via main -> a -> b).

Parameters

NameTypeDescription
cycleCycle | list[ir.Method]

Returns

str

source