Skip to content

Commit

Permalink
fix: rm print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelkamimura committed May 13, 2024
1 parent 7f75e4d commit 767470b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions br_docs/validators/sei.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@


class SEIv:
Patterns = re.compile(r"^\d{5}-?\d{8}/?\d{4}-?\d{2}$")
Patterns = re.compile(r'^\d{5}-?\d{8}/?\d{4}-?\d{2}$')

def __call__(self, value: str) -> str:
self.validate(value)
return value

def validate(self, value: str) -> str:
check_format = bool(self.Patterns.match(value))
print(check_format)
if check_format is not True:
raise PydanticCustomError("invalid", "Invalid Value")
raise PydanticCustomError('invalid', 'Invalid Value')
return value

0 comments on commit 767470b

Please sign in to comment.