From 6e524c4bf991ba1b605e56d230bf11091ee7a57e Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 20 Jun 2024 19:01:47 -0300 Subject: [PATCH] refactor: Update SourceHandle baseClasses field to use default_factory for better consistency --- src/backend/base/langflow/graph/edge/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/graph/edge/base.py b/src/backend/base/langflow/graph/edge/base.py index 7b7d32457..d5b4b3ca0 100644 --- a/src/backend/base/langflow/graph/edge/base.py +++ b/src/backend/base/langflow/graph/edge/base.py @@ -11,7 +11,7 @@ if TYPE_CHECKING: class SourceHandle(BaseModel): - baseClasses: Optional[List[str]] = Field(None, description="List of base classes for the source handle.") + baseClasses: list[str] = Field(default_factory=list, description="List of base classes for the source handle.") dataType: str = Field(..., description="Data type for the source handle.") id: str = Field(..., description="Unique identifier for the source handle.") name: Optional[str] = Field(None, description="Name of the source handle.")