Fix type errors and remove trailing whitespace
- Add explicit type annotations for params dictionaries to resolve mypy errors - Remove trailing whitespace from blank lines (W293 ruff warnings) - Ensure type safety in task_tools.py and document_tools.py
This commit is contained in:
parent
d5bfaba3af
commit
e8cffde80e
@ -227,7 +227,7 @@ def register_document_tools(mcp: FastMCP):
|
||||
timeout = httpx.Timeout(30.0, connect=5.0)
|
||||
|
||||
# Build update fields
|
||||
update_fields = {}
|
||||
update_fields: Dict[str, Any] = {}
|
||||
if title is not None:
|
||||
update_fields["title"] = title
|
||||
if content is not None:
|
||||
|
||||
@ -7,7 +7,7 @@ Mirrors the functionality of the original manage_task tool but with individual t
|
||||
|
||||
import json
|
||||
import logging
|
||||
from typing import Any, Optional, List, Dict
|
||||
from typing import Any, Dict, List, Optional
|
||||
from urllib.parse import urljoin
|
||||
|
||||
import httpx
|
||||
@ -177,7 +177,7 @@ def register_task_tools(mcp: FastMCP):
|
||||
timeout = httpx.Timeout(30.0, connect=5.0)
|
||||
|
||||
# Build URL and parameters based on filter type
|
||||
params = {
|
||||
params: Dict[str, Any] = {
|
||||
"page": page,
|
||||
"per_page": per_page,
|
||||
"exclude_large_fields": True, # Always exclude large fields in MCP responses
|
||||
|
||||
Loading…
Reference in New Issue
Block a user