File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 1+ """Shared helpers for MCP unit tests."""
2+
13import 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 = []
59if 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
2016BUILTINS = {"get_dash_component" }
2117
You can’t perform that action at this time.
0 commit comments