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

Method coerce

tests/test_traitlets.py:1674–1678  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

1672 _bad_values = [1]
1673
1674 def coerce(self, value):
1675 if isinstance(value, str):
1676 # compatibility handling: convert string to set containing string
1677 value = {value}
1678 return value
1679
1680
1681class Foo:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected