Fix Settings field with both default and default_factory (#1380)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Jeremiah Lowin 2025-08-06 09:38:00 -04:00 committed by GitHub
commit 1ade5ddb05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -244,13 +244,10 @@ class Settings(BaseSettings):
),
] = False
server_dependencies: Annotated[
list[str],
Field(
default_factory=list,
description="List of dependencies to install in the server environment",
),
] = []
server_dependencies: list[str] = Field(
default_factory=list,
description="List of dependencies to install in the server environment",
)
# StreamableHTTP settings
json_response: bool = False