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

Function public

box/comments.py:73–77  ·  view source on GitHub ↗

Stored comment entry to what get_comment returns: strings, missing positions as None.

(entry: dict | None)

Source from the content-addressed store, hash-verified

71
72
73def public(entry: dict | None) -> dict | None:
74 """Stored comment entry to what get_comment returns: strings, missing positions as None."""
75 if not entry:
76 return None
77 return {k: ("\n".join(v) if isinstance(v, list) else v) for k, v in entry.items()}
78
79
80def get_comment(obj, key) -> dict | None:

Callers 1

get_commentFunction · 0.85

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected