Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class FloatBetween(_FloatComparison):
def __init__(self, lower: float, upper: float):
super().__init__(ge=lower, le=upper)
class FloatGreaterThan(_FloatComparison):
def __init__(self, gt: float):
super().__init__(gt=gt)
class FloatGreaterOrEquals(_FloatComparison):
def __init__(self, ge: float):
super().__init__(ge=ge)
class FloatLessThan(_FloatComparison):
def __init__(self, lt):
super().__init__(lt=lt)
class FloatLessOrEquals(_FloatComparison):
def __init__(self, le):
super().__init__(le=le)
# strings
class AnyStr(_RichComparison):
def __init__(self):
super().__init__(klass=str)
def __init__(self, le):
super().__init__(le=le)
# floats
class AnyFloat(_FloatComparison):
def __init__(self):
super().__init__()
class NotThisFloat(_FloatComparison):
def __init__(self, ne: float):
super().__init__(ne=ne)
class FloatBetween(_FloatComparison):
def __init__(self, lower: float, upper: float):
super().__init__(ge=lower, le=upper)
class FloatGreaterThan(_FloatComparison):
def __init__(self, gt: float):
super().__init__(gt=gt)
class FloatGreaterOrEquals(_FloatComparison):
def __init__(self, ge: float):
super().__init__(ge=ge)
class FloatLessThan(_FloatComparison):
def __init__(self, lt):
def __init__(self, ge: int):
super().__init__(ge=ge)
class IntLessThan(_IntComparison):
def __init__(self, lt):
super().__init__(lt=lt)
class IntLessOrEquals(_IntComparison):
def __init__(self, le):
super().__init__(le=le)
# floats
class AnyFloat(_FloatComparison):
def __init__(self):
super().__init__()
class NotThisFloat(_FloatComparison):
def __init__(self, ne: float):
super().__init__(ne=ne)
class FloatBetween(_FloatComparison):
def __init__(self, lower: float, upper: float):
super().__init__(ge=lower, le=upper)
class FloatGreaterThan(_FloatComparison):
def __init__(self, gt: float):
class NotThisFloat(_FloatComparison):
def __init__(self, ne: float):
super().__init__(ne=ne)
class FloatBetween(_FloatComparison):
def __init__(self, lower: float, upper: float):
super().__init__(ge=lower, le=upper)
class FloatGreaterThan(_FloatComparison):
def __init__(self, gt: float):
super().__init__(gt=gt)
class FloatGreaterOrEquals(_FloatComparison):
def __init__(self, ge: float):
super().__init__(ge=ge)
class FloatLessThan(_FloatComparison):
def __init__(self, lt):
super().__init__(lt=lt)
class FloatLessOrEquals(_FloatComparison):
def __init__(self, le):
super().__init__(le=le)
# strings
class AnyFloat(_FloatComparison):
def __init__(self):
super().__init__()
class NotThisFloat(_FloatComparison):
def __init__(self, ne: float):
super().__init__(ne=ne)
class FloatBetween(_FloatComparison):
def __init__(self, lower: float, upper: float):
super().__init__(ge=lower, le=upper)
class FloatGreaterThan(_FloatComparison):
def __init__(self, gt: float):
super().__init__(gt=gt)
class FloatGreaterOrEquals(_FloatComparison):
def __init__(self, ge: float):
super().__init__(ge=ge)
class FloatLessThan(_FloatComparison):
def __init__(self, lt):
super().__init__(lt=lt)
class FloatLessOrEquals(_FloatComparison):
def __init__(self, le):
def __init__(self, lt):
super().__init__(lt=lt)
class IntLessOrEquals(_IntComparison):
def __init__(self, le):
super().__init__(le=le)
# floats
class AnyFloat(_FloatComparison):
def __init__(self):
super().__init__()
class NotThisFloat(_FloatComparison):
def __init__(self, ne: float):
super().__init__(ne=ne)
class FloatBetween(_FloatComparison):
def __init__(self, lower: float, upper: float):
super().__init__(ge=lower, le=upper)
class FloatGreaterThan(_FloatComparison):
def __init__(self, gt: float):
super().__init__(gt=gt)
class FloatGreaterOrEquals(_FloatComparison):
def __init__(self, ge: float):
class FloatGreaterThan(_FloatComparison):
def __init__(self, gt: float):
super().__init__(gt=gt)
class FloatGreaterOrEquals(_FloatComparison):
def __init__(self, ge: float):
super().__init__(ge=ge)
class FloatLessThan(_FloatComparison):
def __init__(self, lt):
super().__init__(lt=lt)
class FloatLessOrEquals(_FloatComparison):
def __init__(self, le):
super().__init__(le=le)
# strings
class AnyStr(_RichComparison):
def __init__(self):
super().__init__(klass=str)
class RegexMatches(Matcher):
"""
Compares true if other mathes given regex.
"""