(obj: Union[Dict, Block, Attachment])
| 8 | |
| 9 | def _parse_web_class_objects(kwargs) -> None: |
| 10 | def to_dict(obj: Union[Dict, Block, Attachment]): |
| 11 | if isinstance(obj, Block): |
| 12 | return obj.to_dict() |
| 13 | if isinstance(obj, Attachment): |
| 14 | return obj.to_dict() |
| 15 | return obj |
| 16 | |
| 17 | blocks = kwargs.get("blocks", None) |
| 18 | if blocks is not None and isinstance(blocks, list): |
no test coverage detected