mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 05:54:19 +02:00
Update server.py
This commit is contained in:
parent
424978397b
commit
e3a9050ac0
1 changed files with 1 additions and 1 deletions
|
|
@ -768,7 +768,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
def decorator(fn: AnyFunction) -> Resource | ResourceTemplate:
|
||||
from fastmcp.server.context import Context
|
||||
|
||||
if isinstance(fn, classmethod):
|
||||
if isinstance(fn, classmethod): # type: ignore[reportUnnecessaryIsInstance]
|
||||
raise ValueError(
|
||||
inspect.cleandoc(
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue