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

Method from_string

traitlets/traitlets.py:2845–2848  ·  view source on GitHub ↗
(self, s: str)

Source from the content-addressed store, hash-verified

2843 self.error(obj, value)
2844
2845 def from_string(self, s: str) -> complex | None:
2846 if self.allow_none and s == "None":
2847 return None
2848 return complex(s)
2849
2850 def subclass_init(self, cls: type[t.Any]) -> None:
2851 pass # fully opt out of instance_init

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected