ConstraintList#

class ConstraintList#

Methods

__init__

__init__

append

append

clear

clear

copy

copy

count

count

extend

extend

index

index

insert

insert

pop

pop

remove

remove

reverse

reverse

class Iterator#
__init__(*args, **kwargs)#
__iter__(self) Iterator#

__iter__

Return type:

Iterator

__next__(self) Constraint#

__next__

Return type:

Constraint

__add__(self, arg: ConstraintList, /) ConstraintList#
__add__(self, arg: Constraint, /) ConstraintList

__add__

Overloading:

1. __add__(self, arg: amplify.ConstraintList, /) -> amplify.ConstraintList

Args:
  • arg (amplify.ConstraintList):

Returns:

amplify.ConstraintList:

2. __add__(self, arg: amplify.Constraint, /) -> amplify.ConstraintList

Args:
  • arg (amplify.Constraint):

Returns:

amplify.ConstraintList:

__copy__(self) ConstraintList#

__copy__

Return type:

ConstraintList

__deepcopy__(self, memo: Any | None = None) ConstraintList#

__deepcopy__

Parameters:

memo (Any | None) – Defaults to None.

Return type:

ConstraintList

__eq__(self, arg: ConstraintList, /) bool#

__eq__

Parameters:

arg (ConstraintList) –

Return type:

bool

__getitem__(self, key: int) Constraint#

__getitem__

Parameters:

key (int) –

Return type:

Constraint

__iadd__(self, arg: ConstraintList, /) ConstraintList#
__iadd__(self, arg: Constraint, /) ConstraintList

__iadd__

Overloading:

1. __iadd__(self, arg: amplify.ConstraintList, /) -> amplify.ConstraintList

Args:
  • arg (amplify.ConstraintList):

Returns:

amplify.ConstraintList:

2. __iadd__(self, arg: amplify.Constraint, /) -> amplify.ConstraintList

Args:
  • arg (amplify.Constraint):

Returns:

amplify.ConstraintList:

__imul__(self, arg: float, /) ConstraintList#

__imul__

Parameters:

arg (float) –

Return type:

ConstraintList

__init__(self) None#
__init__(self, object: Sequence[Constraint]) None

__init__

Parameters:

object (Sequence[Constraint]) –

__iter__(self) Iterator#

__iter__

Return type:

Iterator

__itruediv__(self, arg: float, /) ConstraintList#

__itruediv__

Parameters:

arg (float) –

Return type:

ConstraintList

__len__(self) int#

__len__

Return type:

int

__mul__(self, arg: float, /) ConstraintList#

__mul__

Parameters:

arg (float) –

Return type:

ConstraintList

__ne__(self, arg: ConstraintList, /) bool#

__ne__

Parameters:

arg (ConstraintList) –

Return type:

bool

__radd__(self, arg: Constraint, /) ConstraintList#
__radd__(self, arg: int, /) ConstraintList

__radd__

Overloading:

1. __radd__(self, arg: amplify.Constraint, /) -> amplify.ConstraintList

Args:
  • arg (amplify.Constraint):

Returns:

amplify.ConstraintList:

2. __radd__(self, arg: int, /) -> amplify.ConstraintList

Args:
  • arg (int):

Returns:

amplify.ConstraintList:

__repr__(self) str#

__repr__

Return type:

str

__rmul__(self, arg: float, /) ConstraintList#

__rmul__

Parameters:

arg (float) –

Return type:

ConstraintList

__setitem__(self, key: int, value: Constraint) None#

__setitem__

Parameters:
__str__(self) str#

__str__

Return type:

str

__truediv__(self, arg: float, /) ConstraintList#

__truediv__

Parameters:

arg (float) –

Return type:

ConstraintList

append(self, value: Constraint) None#

append

Parameters:

value (Constraint) –

clear(self) None#

clear

copy(self) ConstraintList#

copy

Return type:

ConstraintList

count(self, value: Constraint) int#

count

Parameters:

value (Constraint) –

Return type:

int

extend(self, sequence: Sequence[Constraint]) None#

extend

Parameters:

sequence (Sequence[Constraint]) –

index(self, value: Constraint) int#
index(self, value: Constraint, start: int) int
index(self, value: Constraint, start: int, end: int) int

index

Overloading:

1. index(self, value: amplify.Constraint) -> int

Args:
  • value (amplify.Constraint):

Returns:

int:

2. index(self, value: amplify.Constraint, start: int) -> int

Args:
  • value (amplify.Constraint):

  • start (int):

Returns:

int:

3. index(self, value: amplify.Constraint, start: int, end: int) -> int

Args:
  • value (amplify.Constraint):

  • start (int):

  • end (int):

Returns:

int:

insert(self, index: int, value: Constraint) None#

insert

Parameters:
pop(self, index: int | None = None) Constraint#

pop

Parameters:

index (int | None) – Defaults to None.

Return type:

Constraint

remove(self, value: Constraint) None#

remove

Parameters:

value (Constraint) –

reverse(self) None#

reverse