MCPcopy Create free account
hub / github.com/cdgriffith/Box / del_comment

Function del_comment

box/comments.py:107–115  ·  view source on GitHub ↗
(obj, key)

Source from the content-addressed store, hash-verified

105
106
107def del_comment(obj, key) -> None:
108 owner, key = obj._comment_owner(key)
109 owner._comment_check_frozen()
110 if key is None:
111 owner._comment_document().clear()
112 else:
113 store = owner._comment_store(create=False)
114 if store:
115 store.pop(key, None)
116
117
118def extract_comments(root: Any) -> dict | None:

Callers

nothing calls this directly

Calls 6

_comment_ownerMethod · 0.45
_comment_check_frozenMethod · 0.45
clearMethod · 0.45
_comment_documentMethod · 0.45
_comment_storeMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected