Skip to content

_config

get_run_validators()

Return whether or not validators are run.

Source code in client/ayon_fusion/vendor/attr/_config.py
19
20
21
22
23
def get_run_validators():
    """
    Return whether or not validators are run.
    """
    return _run_validators

set_run_validators(run)

Set whether or not validators are run. By default, they are run.

Source code in client/ayon_fusion/vendor/attr/_config.py
 9
10
11
12
13
14
15
16
def set_run_validators(run):
    """
    Set whether or not validators are run.  By default, they are run.
    """
    if not isinstance(run, bool):
        raise TypeError("'run' must be bool.")
    global _run_validators
    _run_validators = run