Class k.a.argcheck(object):

Part of kiwi.argcheck

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
Function__init__Undocumented
Functionenable
Enable argcheck globally
Functiondisable
Disable argcheck globally
Function__call__Undocumented
Functionextra_checkUndocumented
Function_type_checkUndocumented
def __init__(self, *types):
Undocumented
def enable(cls):
Enable argcheck globally
def disable(cls):
Disable argcheck globally
def __call__(self, func):
Undocumented
def extra_check(self, names, types, args, kwargs):
Undocumented
def _type_check(self, value, argument_type, name, default=_NoValue):
Undocumented