fix: add explicit type annotation for call_tool decorator (#1826)

Co-authored-by: Jay Hemnani <jayhemnani9910@gmail.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
This commit is contained in:
Jay Hemnani 2026-01-06 12:11:36 -08:00 • committed by GitHub
commit f397783c39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -499,7 +499,7 @@ class Server(Generic[LifespanResultT, RequestT]):
def decorator(
func: Callable[
...,
[str, dict[str, Any]],
Awaitable[
UnstructuredContent
| StructuredContent