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

Method __setattr__

traitlets/config/loader.py:362–368  ·  view source on GitHub ↗
(self, key: str, value: t.Any)

Source from the content-addressed store, hash-verified

360 raise AttributeError(e) from e
361
362 def __setattr__(self, key: str, value: t.Any) -> None:
363 if key.startswith("__"):
364 return dict.__setattr__(self, key, value)
365 try:
366 self.__setitem__(key, value)
367 except KeyError as e:
368 raise AttributeError(e) from e
369
370 def __delattr__(self, key: str) -> None:
371 if key.startswith("__"):

Callers

nothing calls this directly

Calls 1

__setitem__Method · 0.95

Tested by

no test coverage detected