MCPcopy Index your code
hub / github.com/python/cpython / unset_all

Method unset_all

Lib/tomllib/_parser.py:229–235  ·  view source on GitHub ↗
(self, key: Key)

Source from the content-addressed store, hash-verified

227 self._pending_flags.clear()
228
229 def unset_all(self, key: Key) -> None:
230 cont = self._flags
231 for k in key[:-1]:
232 if k not in cont:
233 return
234 cont = cont[k]["nested"]
235 cont.pop(key[-1], None)
236
237 def set(self, key: Key, flag: int, *, recursive: bool) -> None: # noqa: A003
238 cont = self._flags

Callers 1

create_list_ruleFunction · 0.80

Calls 1

popMethod · 0.45

Tested by

no test coverage detected