| 1 | # This file was auto-generated by Fern from our API Definition. |
| 2 | |
| 3 | from typing import Any, Dict, Mapping, Optional |
| 4 | |
| 5 | |
| 6 | def remove_none_from_dict(original: Mapping[str, Optional[Any]]) -> Dict[str, Any]: |
| 7 | new: Dict[str, Any] = {} |
| 8 | for key, value in original.items(): |
| 9 | if value is not None: |
| 10 | new[key] = value |
| 11 | return new |