dtypeDecorator¶
-
class
utilipy.decorators.
dtypeDecorator
(func: Optional[Callable] = None, in_dtype: Optional[Any] = None, out_dtype: Optional[Any] = None)[source]¶ Bases:
object
Ensure arguments are type dtype.
- Parameters
- funcfunction, optional
function to decorate
- inargslist
[(index, dtype), …]
- outargslist
[(index, dtype), …]
- these arguments, except func, should be specified by key word
- if inargs is forgotten and func is not a function, then func is
- assumed to be inargs.
Initialize dtypeDecorator.
Methods Summary
__call__
(wrapped_func)Make Decorator.
Methods Documentation