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

Method assign

traitlets/tests/test_traitlets.py:12–13  ·  view source on GitHub ↗
(self, value: Any)

Source from the content-addressed store, hash-verified

10 """A best testing class for basic trait types."""
11
12 def assign(self, value: Any) -> None:
13 self.obj.value = value # type:ignore[attr-defined]
14
15 def coerce(self, value: Any) -> Any:
16 return value

Callers 2

test_good_valuesMethod · 0.95
test_allow_noneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected