kiwi.argcheck.argcheck(object) class documentationkiwi.argcheck
(View In Hierarchy)
Decorator to check type and value of arguments.
Usage:
>>> @argcheck(types...) ... def function(args..)
or
>>> class Class: ... @argcheck(types..) ... def method(self, args)
You can customize the checks by subclassing your type from CustomType, there are two builtin types: number which is a float/int combined check and a percent which verifis that the value is a percentage
| Method | __init__ | Undocumented |
| Class Method | enable | Enable argcheck globally |
| Class Method | disable | Disable argcheck globally |
| Method | __call__ | Undocumented |
| Method | extra_check | Undocumented |
| Method | _type_check | Undocumented |