Skip to content

Commit 0330817

Browse files
committed
Fix pylint error
1 parent 3f1899d commit 0330817

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

tests/unit/mcp/conftest.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1+
"""Shared helpers for MCP unit tests."""
2+
13
import sys
24

3-
collect_ignore_glob = []
5+
from dash import Dash, Input, Output, html
6+
from dash._get_app import app_context
47

8+
collect_ignore_glob = []
59
if sys.version_info < (3, 10):
610
collect_ignore_glob.append("*")
7-
8-
"""Shared helpers for MCP unit tests.
9-
10-
These helpers work directly with Tool objects from CallbackAdapterCollection,
11-
avoiding the MCP server so they can be used before the server is wired up.
12-
"""
13-
14-
from dash import Dash, Input, Output, html
15-
from dash._get_app import app_context
16-
from dash.mcp.primitives.tools.callback_adapter_collection import (
17-
CallbackAdapterCollection,
18-
)
11+
else:
12+
from dash.mcp.primitives.tools.callback_adapter_collection import ( # pylint: disable=wrong-import-position
13+
CallbackAdapterCollection,
14+
)
1915

2016
BUILTINS = {"get_dash_component"}
2117

0 commit comments

Comments
 (0)