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

Method item_from_string

traitlets/traitlets.py:3570–3571  ·  view source on GitHub ↗
(s: str, index: int | None = None)

Source from the content-addressed store, hash-verified

3568 else:
3569 # backward-compat: allow item_from_string to ignore index arg
3570 def item_from_string(s: str, index: int | None = None) -> T | str:
3571 return self.item_from_string(s)
3572
3573 return self.klass( # type:ignore[call-arg]
3574 [item_from_string(s, index=idx) for idx, s in enumerate(s_list)]

Callers

nothing calls this directly

Calls 1

from_stringMethod · 0.45

Tested by

no test coverage detected