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

Method __init__

tortoise/validators.py:79–81  ·  view source on GitHub ↗
(self, min_value: int | float | Decimal)

Source from the content-addressed store, hash-verified

77 """
78
79 def __init__(self, min_value: int | float | Decimal) -> None:
80 self._validate_type(min_value)
81 self.min_value = min_value
82
83 def __call__(self, value: int | float | Decimal) -> None:
84 self._validate_type(value)

Callers

nothing calls this directly

Calls 1

_validate_typeMethod · 0.80

Tested by

no test coverage detected