MCPcopy Create free account
hub / github.com/ipython/traitlets / validate

Method validate

tests/test_traitlets.py:118–119  ·  view source on GitHub ↗
(self, inst, value)

Source from the content-addressed store, hash-verified

116 def test_validate(self):
117 class MyTT(TraitType[int, int]):
118 def validate(self, inst, value):
119 return -1
120
121 class A(HasTraitsStub):
122 tt = MyTT

Callers 1

_from_string_testFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected