chore: format

This commit is contained in:
Timothy Jaeryang Baek committed 2026-02-11 16:24:11 -06:00
1 parent 89fddcc741
commit f376d4f378
202 files changed
+8328 -2046

No files matched your search

+2 -2
View File
@@ -65,7 +65,7 @@ class FileMeta(BaseModel):
"""Sanitize metadata fields to handle malformed legacy data."""
if not isinstance(data, dict):
return data
# Handle content_type that may be a list like ['application/pdf', None]
content_type = data.get("content_type")
if isinstance(content_type, list):
@@ -75,7 +75,7 @@ class FileMeta(BaseModel):
)
elif content_type is not None and not isinstance(content_type, str):
data["content_type"] = None
return data