Stored comment entry to what get_comment returns: strings, missing positions as None.
(entry: dict | None)
| 71 | |
| 72 | |
| 73 | def 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 | |
| 80 | def get_comment(obj, key) -> dict | None: |