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

Function _is_section_key

traitlets/config/loader.py:219–221  ·  view source on GitHub ↗

Is a Config key a section name (does it start with a capital)?

(key: str)

Source from the content-addressed store, hash-verified

217
218
219def _is_section_key(key: str) -> bool:
220 """Is a Config key a section name (does it start with a capital)?"""
221 return bool(key and key[0].upper() == key[0] and not key.startswith("_"))
222
223
224class Config(dict): # type:ignore[type-arg]

Callers 5

_load_configMethod · 0.85
_ensure_subconfigMethod · 0.85
_has_sectionMethod · 0.85
__getitem__Method · 0.85
__setitem__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…