comparison env/lib/python3.9/site-packages/attr/_config.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 from __future__ import absolute_import, division, print_function
2
3
4 __all__ = ["set_run_validators", "get_run_validators"]
5
6 _run_validators = True
7
8
9 def set_run_validators(run):
10 """
11 Set whether or not validators are run. By default, they are run.
12 """
13 if not isinstance(run, bool):
14 raise TypeError("'run' must be bool.")
15 global _run_validators
16 _run_validators = run
17
18
19 def get_run_validators():
20 """
21 Return whether or not validators are run.
22 """
23 return _run_validators