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

Function _parse_int_or_str

tests/config/test_loader.py:183–187  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

181
182
183def _parse_int_or_str(v):
184 try:
185 return int(v)
186 except Exception:
187 return str(v)
188
189
190class MyLoader1(ArgParseConfigLoader):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…