mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 02:10:38 +02:00
Lazily expose server.dependencies instead of dropping it
This commit is contained in:
parent
d9541c9c21
commit
d773079aba
1 changed files with 8 additions and 0 deletions
|
|
@ -1,5 +1,13 @@
|
|||
import importlib
|
||||
|
||||
from .context import Context
|
||||
from .server import FastMCP, create_proxy
|
||||
|
||||
|
||||
def __getattr__(name: str) -> object:
|
||||
if name == "dependencies":
|
||||
return importlib.import_module("fastmcp.server.dependencies")
|
||||
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
||||
|
||||
|
||||
__all__ = ["Context", "FastMCP", "create_proxy"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue