mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 15:03:21 +00:00
feat(text-splitters): ruff fixes and rules (#32502)
This commit is contained in:
@@ -26,7 +26,7 @@ class MarkdownHeaderTextSplitter:
|
||||
headers_to_split_on: list[tuple[str, str]],
|
||||
return_each_line: bool = False, # noqa: FBT001,FBT002
|
||||
strip_headers: bool = True, # noqa: FBT001,FBT002
|
||||
):
|
||||
) -> None:
|
||||
"""Create a new MarkdownHeaderTextSplitter.
|
||||
|
||||
Args:
|
||||
@@ -281,7 +281,7 @@ class ExperimentalMarkdownSyntaxTextSplitter:
|
||||
headers_to_split_on: Union[list[tuple[str, str]], None] = None,
|
||||
return_each_line: bool = False, # noqa: FBT001,FBT002
|
||||
strip_headers: bool = True, # noqa: FBT001,FBT002
|
||||
):
|
||||
) -> None:
|
||||
"""Initialize the text splitter with header splitting and formatting options.
|
||||
|
||||
This constructor sets up the required configuration for splitting text into
|
||||
|
Reference in New Issue
Block a user