class documentation

class Loader: (source)

Constructor: Loader(func)

View In Hierarchy

Function decorator to identify methods as data loaders for Dock instances

Specify the loader's accepted type(s) using brackets:

@Loader[int]
def load_int(self, data: int):
    ...
Method __call__ Undocumented
Method __init__ Undocumented
Class Variable types Undocumented
Method __class_getitem__ Undocumented
Method __set_name__ Undocumented
Instance Variable _func Undocumented
def __call__(self, *args, **kwargs): (source)

Undocumented

def __init__(self, func): (source)

Undocumented

Undocumented

def __class_getitem__(cls, item: tuple[type, ...] | type) -> type: (source)

Undocumented

def __set_name__(self, owner, name: str): (source)

Undocumented

Undocumented