Skip to content

Commit

Permalink
fixed all formatting issues and checked with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedTammaa committed Dec 20, 2024
1 parent 7dd9f15 commit 456c36a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libs/text-splitters/tests/unit_tests/test_text_splitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2041,8 +2041,9 @@ def test_haskell_code_splitter() -> None:

@pytest.fixture
@pytest.mark.requires("bs4")
def html_header_splitter_splitter_factory() -> Callable[
[List[Tuple[str, str]]], HTMLHeaderTextSplitter]:
def html_header_splitter_splitter_factory() -> (
Callable[[List[Tuple[str, str]]], HTMLHeaderTextSplitter]
):
"""
Fixture to create an HTMLHeaderTextSplitter instance with given headers.
This factory allows dynamic creation of splitters with different headers.
Expand Down Expand Up @@ -2247,7 +2248,7 @@ def test_html_header_text_splitter(
html_input: str,
expected_documents: List[Document],
test_case: str,
):
) -> None:
"""
Test the HTML header text splitter.
Expand Down

0 comments on commit 456c36a

Please sign in to comment.