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__

Overload 1.

Args:
  • arg (amplify.ConstraintList)

Returns:

amplify.ConstraintList:

Overload 2.

Args:
  • arg (amplify.Constraint)

Returns:

amplify.ConstraintList:

__copy__(self) ConstraintListΒΆ

__copy__

Return type:

ConstraintList

__deepcopy__(self, memo: object | None = None) ConstraintListΒΆ

__deepcopy__

Parameters:

memo (object | None) – Defaults to None.

Return type:

ConstraintList

__eq__(self, arg: object, /) boolΒΆ

__eq__

Parameters:

arg (object)

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__

Overload 1.

Args:
  • arg (amplify.ConstraintList)

Returns:

amplify.ConstraintList:

Overload 2.

Args:
  • arg (amplify.Constraint)

Returns:

amplify.ConstraintList:

__imul__(self, arg: float, /) ConstraintListΒΆ

__imul__

Parameters:

arg (float)

Return type:

ConstraintList

__init__(self) NoneΒΆ
__init__(self, arg: Sequence[Constraint]) None
__init__(self, arg: Iterable[Constraint]) None

__init__

Overload 2.

Args:
  • arg (collections.abc.Sequence[amplify.Constraint])

Overload 3.

Args:
  • arg (collections.abc.Iterable[amplify.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: object, /) boolΒΆ

__ne__

Parameters:

arg (object)

Return type:

bool

__radd__(self, arg: Constraint, /) ConstraintListΒΆ
__radd__(self, arg: int, /) ConstraintList

__radd__

Overload 1.

Args:
  • arg (amplify.Constraint)

Returns:

amplify.ConstraintList:

Overload 2.

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

Overload 1.

Args:
  • value (amplify.Constraint)

Returns:

int:

Overload 2.

Args:
  • value (amplify.Constraint)

  • start (int)

Returns:

int:

Overload 3.

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