Skip to content

Commit 8a41b76

Browse files
committed
lint
1 parent 91ff82e commit 8a41b76

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

dash/mcp/primitives/tools/results/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def format_callback_response(
4040

4141
resp = response.get("response") or {}
4242
for callback_output in callback.outputs:
43-
value = resp.get(callback_output["component_id"], {}).get(callback_output["property"])
43+
value = resp.get(callback_output["component_id"], {}).get(
44+
callback_output["property"]
45+
)
4446
for formatter in _RESULT_FORMATTERS:
4547
content.extend(formatter.format(callback_output, value))
4648

dash/mcp/primitives/tools/results/result_dataframe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,6 @@ def format(
6363
or not isinstance(returned_output_value[0], dict)
6464
):
6565
return []
66-
return [TextContent(type="text", text=_to_markdown_table(returned_output_value))]
66+
return [
67+
TextContent(type="text", text=_to_markdown_table(returned_output_value))
68+
]

dash/mcp/primitives/tools/results/result_plotly_figure.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ class PlotlyFigureResult(ResultFormatter):
4444
def format(
4545
cls, output: MCPOutput, returned_output_value: Any
4646
) -> list[TextContent | ImageContent]:
47-
if output.get("component_type") != "Graph" or output.get("property") != "figure":
47+
if (
48+
output.get("component_type") != "Graph"
49+
or output.get("property") != "figure"
50+
):
4851
return []
4952
if not isinstance(returned_output_value, dict):
5053
return []

0 commit comments

Comments
 (0)