Return a fresh copy of ``source`` with as little shared state as possible. Uses `merge_dicts` under the hood, with an empty ``base`` dict; see its documentation for details on behavior. .. versionadded:: 1.0
(source: Dict[str, Any])
| 1237 | |
| 1238 | |
| 1239 | def copy_dict(source: Dict[str, Any]) -> Dict[str, Any]: |
| 1240 | """ |
| 1241 | Return a fresh copy of ``source`` with as little shared state as possible. |
| 1242 | |
| 1243 | Uses `merge_dicts` under the hood, with an empty ``base`` dict; see its |
| 1244 | documentation for details on behavior. |
| 1245 | |
| 1246 | .. versionadded:: 1.0 |
| 1247 | """ |
| 1248 | return merge_dicts({}, source) |
| 1249 | |
| 1250 | |
| 1251 | def excise(dict_: Dict[str, Any], keypath: Tuple[str, ...]) -> None: |
no test coverage detected
searching dependent graphs…