def set_run_validators(run: bool) ->None:
    """
    Set whether or not validators are enabled.
    :param run: whether the validators are run
    """
    if not isinstance(run, bool):
        raise TypeError("'run' must be bool.")
    global _run_validators
    _run_validators = run
