syside.DependencyEnds

class DependencyEnds

Bases: syside.ContainerView[Element]

append(element: syside.Element, name: syside.NameID = NameID.Regular) None

Append a new reference to this container.

replace_at(index: int, element: syside.Element, name: syside.NameID = NameID.Regular) syside.Element

Replace reference element at index with element. Returns the previously referenced element.

Raises IndexError if index is out-of-bounds.

pop(index: int = -1) syside.Element

Pop and return the reference element at index. By default, the last reference is popped.

Raises ValueError if the index is out of bounds.

remove(arg: syside.Element, /) bool

Remove the referenced element. Returns True if the element was removed, and False otherwise.

clear() None

Clear all references from this container. Note that empty references cannot be represented in textual syntax, and is a semantic violation.