mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
Remove deprecatio notice
This commit is contained in:
parent
b1a173cdf7
commit
d882f5d5ac
1 changed files with 0 additions and 10 deletions
|
|
@ -131,16 +131,6 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
tools: list[Tool | Callable[..., Any]] | None = None,
|
||||
**settings: Any,
|
||||
):
|
||||
if settings:
|
||||
# TODO: remove settings. Deprecated since 2.3.4
|
||||
warnings.warn(
|
||||
"Passing runtime and transport-specific settings as kwargs "
|
||||
"to the FastMCP constructor is deprecated (as of 2.3.4), "
|
||||
"including most transport settings. If possible, provide settings when calling "
|
||||
"run() instead.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
self.settings = fastmcp.settings.ServerSettings(**settings)
|
||||
|
||||
# If mask_error_details is provided, override the settings value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue