diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-06-08 13:27:59 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-06-08 13:27:59 +0300 |
commit | 994ae33a811fec7ca11ad049b56b85b4f8c2a553 (patch) | |
tree | 8b3501a272efe0c2448bd69a27af1fcfe396a457 | |
parent | eb825f62ee876e5cf6c6ffc31a7e218d78c94993 (diff) |
upd
-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: |