class documentation

class DependencyList: (source)

Constructor: DependencyList(*lists)

View In Hierarchy

A class represents list of linearizations (dependencies) The last element of DependencyList is a list of parents. It's needed to the merge process preserves the local precedence order of direct parent classes.

Method __contains__ Return True if any linearization's tail contains an item
Method __init__ Undocumented
Method __len__ Undocumented
Method __repr__ Undocumented
Method remove Remove an item from the lists Once an item removed from heads, the leftmost elements of the tails get promoted to become the new heads.
Property exhausted Return True if all elements of the lists are exhausted
Property heads Undocumented
Property tails Return self so that __contains__ could be called Used for readability reasons only
Instance Variable _lists Undocumented
def __contains__(self, item: T) -> bool: (source)

Return True if any linearization's tail contains an item

def __init__(self, *lists: tuple[list[T]]): (source)

Undocumented

def __len__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def remove(self, item: T | None): (source)

Remove an item from the lists Once an item removed from heads, the leftmost elements of the tails get promoted to become the new heads.

Return True if all elements of the lists are exhausted

Undocumented

Return self so that __contains__ could be called Used for readability reasons only

Undocumented