Remove keys from a dictionary. Operates in-place so nothing is returned. Args: data: dictionary to be modified. keys: keys to be deleted from dictionary. Returns: `None`
(data: dict, keys: list[str])
| 1499 | |
| 1500 | |
| 1501 | def remove_keys(data: dict, keys: list[str]) -> None: |
| 1502 | """ |
| 1503 | Remove keys from a dictionary. Operates in-place so nothing is returned. |
| 1504 | |
| 1505 | Args: |
| 1506 | data: dictionary to be modified. |
| 1507 | keys: keys to be deleted from dictionary. |
| 1508 | |
| 1509 | Returns: |
| 1510 | `None` |
| 1511 | """ |
| 1512 | for k in keys: |
| 1513 | _ = data.pop(k, None) |
| 1514 | |
| 1515 | |
| 1516 | def remove_extra_metadata(meta: dict) -> None: |
no test coverage detected
searching dependent graphs…