MCPcopy
hub / github.com/python-attrs/attrs / gt

Function gt

src/attr/validators.py:523–535  ·  view source on GitHub ↗

A validator that raises `ValueError` if the initializer is called with a number smaller or equal to *val*. The validator uses `operator.gt` to compare the values. Args: val: Exclusive lower bound for values .. versionadded:: 21.3.0

(val)

Source from the content-addressed store, hash-verified

521
522
523def gt(val):
524 """
525 A validator that raises `ValueError` if the initializer is called with a
526 number smaller or equal to *val*.
527
528 The validator uses `operator.gt` to compare the values.
529
530 Args:
531 val: Exclusive lower bound for values
532
533 .. versionadded:: 21.3.0
534 """
535 return _NumberValidator(val, ">", operator.gt)
536
537
538@attrs(repr=False, frozen=True, slots=True)

Callers

nothing calls this directly

Calls 1

_NumberValidatorClass · 0.85

Tested by

no test coverage detected