Skip to content

Commit 63c7d2a

Browse files
committed
fix: resolve CI lint and type-check failures
- Remove unused list_paragraphs import in test_tools.py - Add ty: ignore[unresolved-import] for mcp imports (optional dep)
1 parent 30259fa commit 63c7d2a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎docx_editor_mcp/server.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def server_lifespan(mcp) -> AsyncIterator[DocxMCPServer]:
7575

7676
def _create_mcp_app():
7777
"""Create and configure the FastMCP application with all tools registered."""
78-
from mcp.server.fastmcp import FastMCP as _FastMCP
78+
from mcp.server.fastmcp import FastMCP as _FastMCP # ty: ignore[unresolved-import]
7979

8080
mcp = _FastMCP(
8181
"docx-editor",
@@ -88,7 +88,7 @@ def _create_mcp_app():
8888

8989
def _register_tools(mcp) -> None:
9090
"""Register all docx_editor tools on the FastMCP instance."""
91-
from mcp.server.fastmcp import Context
91+
from mcp.server.fastmcp import Context # ty: ignore[unresolved-import]
9292

9393
from . import tools
9494

‎tests/test_mcp/test_tools.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ class TestBatchAndRewriteTools:
359359

360360
def test_batch_edit(self, server, mcp_temp_docx):
361361
"""batch_edit applies multiple edits atomically."""
362-
from docx_editor_mcp.tools import batch_edit, list_paragraphs, open_document
362+
from docx_editor_mcp.tools import batch_edit, open_document
363363

364364
open_document(server, str(mcp_temp_docx), author="Tester")
365365
para = _get_paragraph_ref(server, str(mcp_temp_docx), "quick brown fox")

0 commit comments

Comments
 (0)