otx.core.utils.miscellaneous#

A collection of miscellaneous utility functions.

Functions

ensure_callable(func)

If the given input is not callable, raise TypeError.

otx.core.utils.miscellaneous.ensure_callable(func: Callable[[_T], _V]) Callable[[_T], _V][source]#

If the given input is not callable, raise TypeError.