Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/traitlets
/ coerce
Method
coerce
traitlets/tests/test_traitlets.py:15–16 ·
view source on GitHub ↗
(self, value: Any)
Source
from the content-addressed store, hash-verified
13
self.obj.value = value
# type:ignore[attr-defined]
14
15
def
coerce(self, value: Any) -> Any:
16
return
value
17
18
def
test_good_values(self) -> None:
19
if
hasattr(self,
"_good_values"
):
Callers
1
test_good_values
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected