(d: dict)
| 323 | |
| 324 | |
| 325 | def _remove_none_values(d: dict) -> dict: |
| 326 | # To avoid having null values in JSON (Slack API does not work with null in many situations) |
| 327 | # |
| 328 | # >>> import json |
| 329 | # >>> d = {"a": None, "b":123} |
| 330 | # >>> json.dumps(d) |
| 331 | # '{"a": null, "b": 123}' |
| 332 | # |
| 333 | return {k: v for k, v in d.items() if v is not None} |
| 334 | |
| 335 | |
| 336 | def _to_v2_file_upload_item(upload_file: Dict[str, Any]) -> Dict[str, Optional[Any]]: |
no outgoing calls
no test coverage detected