DataclassList

class kgpy.mixin.DataclassList(data=<factory>)

Bases: Toleranceable, Copyable, Generic[ItemT]

Parameters:

data (List[ItemT]) –

__init__(data=<factory>)
Parameters:

data (List[ItemT]) –

Return type:

None

Attributes

tol_iter

data

Methods

__init__([data])

append(item)

rtype:

typing.NoReturn

copy()

rtype:

typing.TypeVar(CopyableT, bound= Copyable)

copy_shallow()

rtype:

typing.TypeVar(CopyableT, bound= Copyable)

count(value)

rtype:

int

index(value)

rtype:

int

reverse()

Inheritance Diagram

digraph inheritancef2842de6bd { bgcolor=transparent; rankdir=TB; size="8.0, 12.0"; "abc.ABC" [URL="https://docs.python.org/3/library/abc.html#abc.ABC",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Helper class that provides a standard way to create an ABC using"]; "kgpy.mixin.Copyable" [URL="kgpy.mixin.Copyable.html#kgpy.mixin.Copyable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "abc.ABC" -> "kgpy.mixin.Copyable" [arrowsize=0.5,style="setlinewidth(0.5)"]; "kgpy.mixin.DataclassList" [URL="kgpy.mixin.DataclassList.html#kgpy.mixin.DataclassList",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="DataclassList(data: List[~ItemT] = <factory>)"]; "kgpy.mixin.Toleranceable" -> "kgpy.mixin.DataclassList" [arrowsize=0.5,style="setlinewidth(0.5)"]; "kgpy.mixin.Copyable" -> "kgpy.mixin.DataclassList" [arrowsize=0.5,style="setlinewidth(0.5)"]; "typing.Generic" -> "kgpy.mixin.DataclassList" [arrowsize=0.5,style="setlinewidth(0.5)"]; "kgpy.mixin.Toleranceable" [URL="kgpy.mixin.Toleranceable.html#kgpy.mixin.Toleranceable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "abc.ABC" -> "kgpy.mixin.Toleranceable" [arrowsize=0.5,style="setlinewidth(0.5)"]; "typing.Generic" [URL="https://docs.python.org/3/library/typing.html#typing.Generic",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Abstract base class for generic types."]; }
append(item)
Return type:

typing.NoReturn

Parameters:

item (ItemT) –

copy()
Return type:

typing.TypeVar(CopyableT, bound= Copyable)

Parameters:

self (CopyableT) –

copy_shallow()
Return type:

typing.TypeVar(CopyableT, bound= Copyable)

Parameters:

self (CopyableT) –

count(value)
Return type:

int

Parameters:

value (ItemT) –

index(value)
Return type:

int

Parameters:

value (ItemT) –

reverse()
data: typing.List[typing.TypeVar(ItemT)]
property tol_iter: Iterator[DataclassList]