This commit is contained in:
Nuno Campos
2024-09-22 12:42:34 -07:00
parent e76f49c7f0
commit 84a45d186c
+5
View File
@@ -1,8 +1,13 @@
import re
from typing import Any, Sequence, Union
from typing_extensions import Self
class FloatBetween(float):
def __new__(cls, min_value: float, max_value: float) -> Self:
return super().__new__(cls, min_value)
def __init__(self, min_value: float, max_value: float) -> None:
super().__init__()
self.min_value = min_value