MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / to_dict

Function to_dict

slack/web/internal_utils.py:10–15  ·  view source on GitHub ↗
(obj: Union[Dict, Block, Attachment])

Source from the content-addressed store, hash-verified

8
9def _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):

Callers 1

_parse_web_class_objectsFunction · 0.70

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected