MCPcopy Index your code
hub / github.com/ipython/traitlets / validate

Method validate

traitlets/traitlets.py:2706–2711  ·  view source on GitHub ↗
(self, obj: t.Any, value: t.Any)

Source from the content-addressed store, hash-verified

2704 ...
2705
2706 def validate(self, obj: t.Any, value: t.Any) -> G:
2707 try:
2708 value = int(value)
2709 except Exception:
2710 self.error(obj, value)
2711 return _validate_bounds(self, obj, value) # type:ignore[no-any-return]
2712
2713
2714Long, CLong = Int, CInt

Callers

nothing calls this directly

Calls 2

_validate_boundsFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected