r"""Remove a key from a dictionary recursively.
(d: Dict, remove_key: Any)
| 33 | |
| 34 | |
| 35 | def _remove_a_key(d: Dict, remove_key: Any) -> None: |
| 36 | r"""Remove a key from a dictionary recursively.""" |
| 37 | if isinstance(d, dict): |
| 38 | for key in list(d.keys()): |
| 39 | if key == remove_key: |
| 40 | del d[key] |
| 41 | else: |
| 42 | _remove_a_key(d[key], remove_key) |
| 43 | |
| 44 | |
| 45 | def _remove_title_recursively(data, parent_key=None): |
nothing calls this directly
no outgoing calls
no test coverage detected