wtypes.utils

Module Contents

wtypes.utils.istype(object, cls)

instance(object, type) and issubclass(object, cls)

Examples

>>> assert istype(int, int)
>>> assert not istype(10, int)
wtypes.utils.validate_schema(object: object, schema: dict) → None
wtypes.utils.validate_generic(object, cls)