all_of_type

uarray.all_of_type(arg_type)[source]

Marks all unmarked arguments as a given type.

Examples

>>> @all_of_type(str)
... def f(a, b):
...     return a, Dispatchable(b, int)
>>> f('a', 1)
(<Dispatchable: type=<class 'str'>, value='a'>, <Dispatchable: type=<class 'int'>, value=1>)