class Traversable(Protocol): def leaves(self) -> Iterable['Traversable']: ...