defworld.constraints — Builtin constraints

class defworld.constraints.Typed(type, exact=False)

Type checker.

Parameters:
  • type (type) – type to check the given value
  • exact (bool) – if it’s True it tests only its type. otherwise it tests the type’s direct/indirect subclasses. default is False

Project Versions

This Page