skshapes.input_validation.typechecking.typecheck

skshapes.input_validation.typechecking.typecheck(func)

Runtime checker for function’s arguments.

This is a combination of the beartype and jaxtyping decorators. Jaxtyped allows to use jaxtyping typing hints for arrays/tensors while beartype is a runtime type checker. This decorator allows to use both.

Parameters:

func (callable) – the function to decorate

Returns:

the decorated function

Return type:

callable