Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_config.py 826B

1 year ago
12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: MIT
  2. __all__ = ["set_run_validators", "get_run_validators"]
  3. _run_validators = True
  4. def set_run_validators(run):
  5. """
  6. Set whether or not validators are run. By default, they are run.
  7. .. deprecated:: 21.3.0 It will not be removed, but it also will not be
  8. moved to new ``attrs`` namespace. Use `attrs.validators.set_disabled()`
  9. instead.
  10. """
  11. if not isinstance(run, bool):
  12. raise TypeError("'run' must be bool.")
  13. global _run_validators
  14. _run_validators = run
  15. def get_run_validators():
  16. """
  17. Return whether or not validators are run.
  18. .. deprecated:: 21.3.0 It will not be removed, but it also will not be
  19. moved to new ``attrs`` namespace. Use `attrs.validators.get_disabled()`
  20. instead.
  21. """
  22. return _run_validators