@@ -51,7 +51,7 @@ class Blob(BaseMedia):
5151 help to decouple the development of data loaders from the downstream parsing of
5252 the raw data.
5353
54- Inspired by: https://developer.mozilla.org/en-US/docs/Web/API/Blob
54+ Inspired by [Mozilla's `Blob`]( https://developer.mozilla.org/en-US/docs/Web/API/Blob)
5555
5656 Example: Initialize a blob from in-memory data
5757
@@ -103,7 +103,7 @@ class Blob(BaseMedia):
103103 """
104104
105105 data : bytes | str | None = None
106- """Raw data associated with the blob ."""
106+ """Raw data associated with the `Blob` ."""
107107 mimetype : str | None = None
108108 """MimeType not to be confused with a file extension."""
109109 encoding : str = "utf-8"
@@ -123,7 +123,7 @@ class Blob(BaseMedia):
123123 def source (self ) -> str | None :
124124 """The source location of the blob as string if known otherwise none.
125125
126- If a path is associated with the blob , it will default to the path location.
126+ If a path is associated with the `Blob` , it will default to the path location.
127127
128128 Unless explicitly set via a metadata field called `"source"`, in which
129129 case that value will be used instead.
@@ -211,13 +211,13 @@ def from_path(
211211 Args:
212212 path: Path-like object to file to be read
213213 encoding: Encoding to use if decoding the bytes into a string
214- mime_type: If provided, will be set as the mime- type of the data
215- guess_type: If `True`, the mimetype will be guessed from the file extension,
216- if a mime-type was not provided
217- metadata: Metadata to associate with the blob
214+ mime_type: If provided, will be set as the MIME type of the data
215+ guess_type: If `True`, the MIME type will be guessed from the file
216+ extension, if a mime-type was not provided
217+ metadata: Metadata to associate with the `Blob`
218218
219219 Returns:
220- Blob instance
220+ ` Blob` instance
221221 """
222222 if mime_type is None and guess_type :
223223 mimetype = mimetypes .guess_type (path )[0 ] if guess_type else None
@@ -243,17 +243,17 @@ def from_data(
243243 path : str | None = None ,
244244 metadata : dict | None = None ,
245245 ) -> Blob :
246- """Initialize the blob from in-memory data.
246+ """Initialize the `Blob` from in-memory data.
247247
248248 Args:
249- data: The in-memory data associated with the blob
249+ data: The in-memory data associated with the `Blob`
250250 encoding: Encoding to use if decoding the bytes into a string
251- mime_type: If provided, will be set as the mime- type of the data
251+ mime_type: If provided, will be set as the MIME type of the data
252252 path: If provided, will be set as the source from which the data came
253- metadata: Metadata to associate with the blob
253+ metadata: Metadata to associate with the `Blob`
254254
255255 Returns:
256- Blob instance
256+ ` Blob` instance
257257 """
258258 return cls (
259259 data = data ,
0 commit comments