core[patch]: set default on Blob (#26787)

Resolves https://github.com/langchain-ai/langchain/issues/26781
This commit is contained in:
ccurme 2024-09-23 14:55:56 -04:00 committed by GitHub
parent 97b27f0930
commit bba7af903b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ class Blob(BaseMedia):
print(f.read()) print(f.read())
""" """
data: Union[bytes, str, None] data: Union[bytes, str, None] = None
"""Raw data associated with the blob.""" """Raw data associated with the blob."""
mimetype: Optional[str] = None mimetype: Optional[str] = None
"""MimeType not to be confused with a file extension.""" """MimeType not to be confused with a file extension."""