MCPcopy Create free account
hub / github.com/pyinvoke/invoke / _track_modification_of

Method _track_modification_of

invoke/config.py:234–241  ·  view source on GitHub ↗
(self, key: str, value: str)

Source from the content-addressed store, hash-verified

232 target._remove(getattr(self, "_keypath", tuple()), key)
233
234 def _track_modification_of(self, key: str, value: str) -> None:
235 target = None
236 if self._is_leaf:
237 target = self._root
238 elif self._is_root:
239 target = self
240 if target is not None:
241 target._modify(getattr(self, "_keypath", tuple()), key, value)
242
243 def __delitem__(self, key: str) -> None:
244 del self._config[key]

Callers 2

__setitem__Method · 0.95
setdefaultMethod · 0.95

Calls 1

_modifyMethod · 0.80

Tested by

no test coverage detected