@classmethod
def whitelist(cls, typ, fn=None):
    """Whitelist the type given in ``typ``.

        Will run the check function ``fn`` on objects if provided.
        """
    cls.WHITELIST.add(typ)
    if fn is not None:
        cls.CHECKS[typ] = fn
