Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Add missing return type annotation to __getattr__ (#4026)

Zach Leventer07c34acb1229
diff --git a/src/fastmcp/server/providers/__init__.py b/src/fastmcp/server/providers/__init__.py
index 4c673be03..fe0c248f9 100644
--- a/src/fastmcp/server/providers/__init__.py
+++ b/src/fastmcp/server/providers/__init__.py
@@ -58,7 +58,7 @@ __all__ = [
]
-def __getattr__(name: str):
+def __getattr__(name: str) -> object:
"""Lazy import for providers to avoid circular imports."""
if name == "ProxyProvider":
from fastmcp.server.providers.proxy import ProxyProvider