mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 02:10:38 +02:00
fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540)
* pin pydantic-monty to 0.0.8 * rename tool/prompt/resource base modules to avoid decorator name shadow * add sys.modules shims for old submodule import paths * preserve original module paths in deprecation warnings * clarify when sys.modules shims can be removed
This commit is contained in:
parent
6bffb22c6c
commit
360c9c31e5
107 changed files with 202 additions and 178 deletions
|
|
@ -16,7 +16,7 @@ from fastmcp.experimental.transforms.code_mode import (
|
|||
_ensure_async,
|
||||
)
|
||||
from fastmcp.server.context import Context
|
||||
from fastmcp.tools.tool import Tool, ToolResult
|
||||
from fastmcp.tools.base import Tool, ToolResult
|
||||
|
||||
|
||||
def _unwrap_result(result: ToolResult) -> Any:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue