Skip to content

Commit ecf9115

Browse files
committed
fix: split long line to meet linting requirements
1 parent 56a0727 commit ecf9115

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/adcp/protocols/mcp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ async def _call_mcp_tool(self, tool_name: str, params: dict[str, Any]) -> TaskRe
260260
serialized_content = self._serialize_mcp_content(result.content)
261261
if isinstance(serialized_content, list):
262262
for item in serialized_content:
263-
if isinstance(item, dict) and item.get("type") == "text" and item.get("text"):
263+
is_text = isinstance(item, dict) and item.get("type") == "text"
264+
if is_text and item.get("text"):
264265
message_text = item["text"]
265266
break
266267

0 commit comments

Comments
 (0)