turbosnake/_components.py
def ascendants(self) -> Iterable['Component']:
        """Iterator over all ascendants of this component"""
        asc = self.parent
        tree = self.__tree

        while asc is not tree:
            yield asc
            asc = asc.parent

        yield asc
Iterator over all ascendants of this component
Iterator over all ascendants of this component
Iterator over all ascendants of this component
def ascendants(self) -> Iterable['Component']:
        asc = self.parent
        tree = self.__tree
        while asc is not tree:
            yield asc
            asc = asc.parent
        yield asc
def ascendants ( self ) -> Iterable [ 'Component' ] : asc = self . parent tree = self . __tree while asc is not tree : yield asc asc = asc . parent yield asc
Iterator over all ascendants of this component
Iterator over all ascendants of this component
"""Iterator over all ascendants of this component"""
self