MCPcopy
hub / github.com/pydantic/pydantic / lt

Method lt

pydantic/experimental/pipeline.py:252–254  ·  view source on GitHub ↗

Constrain a value to be less than a certain value.

(self: _Pipeline[_InT, _NewOutLt], lt: _NewOutLt)

Source from the content-addressed store, hash-verified

250 return self.constrain(annotated_types.Gt(gt))
251
252 def lt(self: _Pipeline[_InT, _NewOutLt], lt: _NewOutLt) -> _Pipeline[_InT, _NewOutLt]:
253 """Constrain a value to be less than a certain value."""
254 return self.constrain(annotated_types.Lt(lt))
255
256 def ge(self: _Pipeline[_InT, _NewOutGe], ge: _NewOutGe) -> _Pipeline[_InT, _NewOutGe]:
257 """Constrain a value to be greater than or equal to a certain value."""

Callers 1

test_compositionFunction · 0.80

Calls 1

constrainMethod · 0.95

Tested by 1

test_compositionFunction · 0.64