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

Function get_comment

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

Source from the content-addressed store, hash-verified

78
79
80def get_comment(obj, key) -> dict | None:
81 owner, key = obj._comment_owner(key)
82 if key is None:
83 return public(owner._comment_document(create=False))
84 store = owner._comment_store(create=False)
85 return public(store.get(key)) if store else None
86
87
88def set_comment(obj, key, text, position=None) -> None:

Callers

nothing calls this directly

Calls 5

publicFunction · 0.85
getMethod · 0.80
_comment_ownerMethod · 0.45
_comment_documentMethod · 0.45
_comment_storeMethod · 0.45

Tested by

no test coverage detected