From 86e2a0f9d09175c23be3c641ec5bca5311476840 Mon Sep 17 00:00:00 2001 From: isaac hershenson Date: Tue, 17 Dec 2024 13:06:55 -0800 Subject: [PATCH] typing --- python/langsmith/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/langsmith/schemas.py b/python/langsmith/schemas.py index 4e3a63320..3958ac94b 100644 --- a/python/langsmith/schemas.py +++ b/python/langsmith/schemas.py @@ -372,7 +372,7 @@ class RunBase(BaseModel): tags: Optional[List[str]] = None """Tags for categorizing or annotating the run.""" - attachments: Attachments | Dict[str, AttachmentInfo] = Field(default_factory=dict) + attachments: Union[Attachments, Dict[str, AttachmentInfo]] = Field(default_factory=dict) """Attachments associated with the run. Each entry is a tuple of (mime_type, bytes)."""