summaryrefslogtreecommitdiff
path: root/kvmd/validators
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-29 17:03:41 +0300
committerDevaev Maxim <[email protected]>2020-05-29 17:03:41 +0300
commit3389dbe0481515b6625359c17105a27cb8dfa93a (patch)
treeb5b4d7abaac60747777244b005f63a8274955e7c /kvmd/validators
parentef8b6cfda56aa2474fde00c8e94ea0a3dafa3e0d (diff)
refactoring
Diffstat (limited to 'kvmd/validators')
-rw-r--r--kvmd/validators/basic.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/validators/basic.py b/kvmd/validators/basic.py
index 24387be4..ee71be0f 100644
--- a/kvmd/validators/basic.py
+++ b/kvmd/validators/basic.py
@@ -84,6 +84,10 @@ def valid_number(
return arg
+def valid_int_f0(arg: Any) -> int:
+ return int(valid_number(arg, min=0))
+
+
def valid_int_f1(arg: Any) -> int:
return int(valid_number(arg, min=1))