MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / __init__

Method __init__

tortoise/validators.py:28–29  ·  view source on GitHub ↗
(self, pattern: str, flags: int | re.RegexFlag)

Source from the content-addressed store, hash-verified

26 """
27
28 def __init__(self, pattern: str, flags: int | re.RegexFlag) -> None:
29 self.regex = re.compile(pattern, flags)
30
31 def __call__(self, value: Any) -> None:
32 if not self.regex.match(value):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected