[docs]classOneToOne(Protocol[T]):r"""Callable type taking one input of a type and returning one output of the same type. """def__call__(self,inputs:T)->T:r"""Callback protocol function."""...
[docs]classManyToOne(Protocol[T]):r"""Callable type taking an arbitrary number of inputs of a type and returning one output of the same type. """def__call__(self,*inputs:T)->T:r"""Callback protocol function."""...
[docs]classOneToMany(Protocol[T]):r"""Callable type taking one input of a type and returning an arbitrary number of outputs of the same type. """def__call__(self,inputs:T)->tuple[T]:r"""Callback protocol function."""...
[docs]classManyToMany(Protocol[T]):r"""Callable type taking an arbitrary number of inputs of a type and returning the same number of outputs of the same type. """def__call__(self,*inputs:T)->tuple[T]:r"""Callback protocol function."""...
[docs]classOneToOneMethod(Protocol[K,T]):r"""Callable type taking a module and one input of a type and returning one output of the same type. """def__call__(self,module:K,inputs:T)->T:r"""Callback protocol function."""...
[docs]classManyToOneMethod(Protocol[K,T]):r"""Callable type taking a module and an arbitrary number of inputs of a type and returning one output of the same type. """def__call__(self,module:K,*inputs:T)->T:r"""Callback protocol function."""...
[docs]classOneToManyMethod(Protocol[K,T]):r"""Callable type taking a module and one input of a type and returning an arbitrary number of outputs of the same type. """def__call__(self,module:K,inputs:T)->tuple[T]:r"""Callback protocol function."""...
[docs]classManyToManyMethod(Protocol[K,T]):r"""Callable type taking a module and an arbitrary number of inputs of a type and returning the same number of outputs of the same type. """def__call__(self,module:K,*inputs:T)->tuple[T]:r"""Callback protocol function."""...