Explorar o código

BREAKING: changed default inclusivity values for length checks

Vsevolod Levitan hai 1 ano
pai
achega
174a987920
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/validation/validator.py

+ 2 - 2
src/validation/validator.py

@@ -58,7 +58,7 @@ class validator:
 
         return True
 
-    def check_length_less(self, value, length: int, inclusive=True):
+    def check_length_less(self, value, length: int, inclusive=False):
         """
             Валидация аргумента по максимальной длине
         Args:
@@ -78,7 +78,7 @@ class validator:
 
         return True
 
-    def check_length_greater(self, value, length: int, inclusive=True):
+    def check_length_greater(self, value, length: int, inclusive=False):
         """
             Валидация аргумента по минимальной длине
         Args: