MCPcopy Index your code
hub / github.com/wechaty/python-wechaty / __setitem__

Method __setitem__

src/wechaty/utils/data_util.py:103–106  ·  view source on GitHub ↗

triggered by `data[key] = value`

(self, key: str, value: Any)

Source from the content-addressed store, hash-verified

101 self.data = value
102
103 def __setitem__(self, key: str, value: Any) -> None:
104 """triggered by `data[key] = value`"""
105 self.data[key] = value
106 self.save_setting(self.data)
107
108 def to_dict(self) -> dict:
109 """return the dict data"""

Callers

nothing calls this directly

Calls 1

save_settingMethod · 0.95

Tested by

no test coverage detected