MCPcopy
hub / github.com/PDFMathTranslate/PDFMathTranslate / delete

Method delete

pdf2zh/config.py:187–193  ·  view source on GitHub ↗

删除配置值并保存

(cls, key)

Source from the content-addressed store, hash-verified

185
186 @classmethod
187 def delete(cls, key):
188 """删除配置值并保存"""
189 instance = cls.get_instance()
190 with instance._lock:
191 if key in instance._config_data:
192 del instance._config_data[key]
193 instance._save_config()
194
195 @classmethod
196 def clear(cls):

Callers

nothing calls this directly

Calls 2

get_instanceMethod · 0.80
_save_configMethod · 0.80

Tested by

no test coverage detected