mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 06:53:16 +00:00
community[patch]: docstrings (#16810)
- added missed docstrings - formated docstrings to the consistent form
This commit is contained in:
@@ -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"
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -141,6 +141,8 @@ def _parse_video_id(url: str) -> Optional[str]:
|
||||
|
||||
|
||||
class TranscriptFormat(Enum):
|
||||
"""Transcript format."""
|
||||
|
||||
TEXT = "text"
|
||||
LINES = "lines"
|
||||
|
||||
|
Reference in New Issue
Block a user