We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a75713 commit 4ad3e60Copy full SHA for 4ad3e60
README.md
@@ -417,7 +417,7 @@ class FixLength(Validator):
417
ERROR_MESSAGE = "'{value}' length should be '{condition}'"
418
419
def __init__(self, fix_length: int, error_message=None):
420
- super().__init__(error_message, fix_length)
+ super().__init__(error_message=error_message, condition=fix_length)
421
422
def validate(self, value=None):
423
if value is None:
0 commit comments