diff options
-rw-r--r-- | src/home/config/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/home/config/config.py b/src/home/config/config.py index 8ed8483..2d49524 100644 --- a/src/home/config/config.py +++ b/src/home/config/config.py @@ -10,19 +10,19 @@ from argparse import ArgumentParser from ..util import parse_addr -my_validators = {} +_my_validators = {} def _get_validator(name: str) -> Optional[callable]: if hasattr(validators, f'{name}_validator'): return getattr(validators, f'{name}_validator') - if name in my_validators: - return my_validators[name] + if name in _my_validators: + return _my_validators[name] return None def add_validator(name: str, f: callable): - my_validators[name] = f + _my_validators[name] = f class ConfigUnit: |