community[patch]: docstrings (#16810)

- added missed docstrings
- formated docstrings to the consistent form
This commit is contained in:
Leonid Ganeline
2024-02-09 12:48:57 -08:00
committed by GitHub
parent ae66bcbc10
commit 932c52c333
25 changed files with 66 additions and 18 deletions

View File

@@ -9,7 +9,7 @@ if TYPE_CHECKING:
class UnstructuredCHMLoader(UnstructuredFileLoader):
"""Load `CHM` files using `Unstructured`.
CHM mean Microsoft Compiled HTML Help.
CHM means Microsoft Compiled HTML Help.
Examples
--------
@@ -35,6 +35,8 @@ class UnstructuredCHMLoader(UnstructuredFileLoader):
class CHMParser(object):
"""Microsoft Compiled HTML Help (CHM) Parser."""
path: str
file: "chm.CHMFile"

View File

@@ -11,6 +11,8 @@ from langchain_community.document_loaders.blob_loaders import Blob
class VsdxParser(BaseBlobParser, ABC):
"""Parser for vsdx files."""
def parse(self, blob: Blob) -> Iterator[Document]: # type: ignore[override]
"""Parse a vsdx file."""
return self.lazy_parse(blob)

View File

@@ -141,6 +141,8 @@ def _parse_video_id(url: str) -> Optional[str]:
class TranscriptFormat(Enum):
"""Transcript format."""
TEXT = "text"
LINES = "lines"