From 3389dbe0481515b6625359c17105a27cb8dfa93a Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Fri, 29 May 2020 17:03:41 +0300 Subject: refactoring --- kvmd/validators/basic.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kvmd/validators/basic.py') 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)) -- cgit v1.2.3