mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 10:18:08 +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
|
|
@ -1,8 +1,8 @@
|
|||
import pytest
|
||||
from pydantic import AnyUrl, BaseModel
|
||||
|
||||
from fastmcp.resources.base import ResourceContent
|
||||
from fastmcp.resources.function_resource import FunctionResource
|
||||
from fastmcp.resources.resource import ResourceContent
|
||||
|
||||
|
||||
class TestFunctionResource:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue