MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / _build_body

Function _build_body

slack_sdk/webhook/internal_utils.py:11–16  ·  view source on GitHub ↗
(original_body: Optional[Dict[str, Any]])

Source from the content-addressed store, hash-verified

9
10
11def _build_body(original_body: Optional[Dict[str, Any]]) -> Optional[Dict[str, Any]]:
12 if original_body:
13 body = {k: v for k, v in original_body.items() if v is not None}
14 _parse_web_class_objects(body)
15 return body
16 return None
17
18
19def _build_request_headers(

Callers 2

send_dictMethod · 0.70
send_dictMethod · 0.70

Calls 1

_parse_web_class_objectsFunction · 0.90

Tested by

no test coverage detected