Skip to main content

Callable

Standard library class internal.core.Callable View source
class Callable
@tuple
class Callable[T, TR]
Fields 4
fn Function[([Ptr[u8], T], TR)]
data Ptr[u8]
T type
TR type
Constructors 4
__new__
__new__(fn: Function[([Ptr[u8], T], TR)], data: Ptr[u8]) -> Callable[(T, TR)]
__new__
@overload
__new__[T: type, TR: type, M: Literal[str], PT: type, F: type, K: type](fn: Function[([Ptr[u8], T], TR)], data: Partial[(M, PT, K, F)]) -> Callable[(T, TR)]
__new__
@overload
__new__(fn: Function[([Ptr[u8], T], TR)], data: Function[(T, TR)]) -> Callable[(T, TR)]
__new__
@overload
__new__(fn: Function[(T, TR)]) -> Callable[(T, TR)]
Special methods 1
__call__
__call__(self: Self, *args)