소스 검색

BREAKING: changed default inclusivity values for length checks

Vsevolod Levitan 1 년 전
부모
커밋
174a987920
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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: