Skip to content

Commit

Permalink
fix: change back to Optional[int] for args
Browse files Browse the repository at this point in the history
  • Loading branch information
scanny committed Oct 24, 2023
1 parent 6b8a3ce commit 63d6ce0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unstructured/chunking/title.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import copy
import functools
import inspect
from typing import Any, Callable, Dict, List, cast
from typing import Any, Callable, Dict, List, Optional, cast

from typing_extensions import ParamSpec

Expand Down Expand Up @@ -56,8 +56,8 @@ def chunk_table_element(element: Table, max_characters: int = 500) -> List[Table
def chunk_by_title(
elements: List[Element],
multipage_sections: bool = True,
combine_text_under_n_chars: int | None = None,
new_after_n_chars: int | None = None,
combine_text_under_n_chars: Optional[int] = None,
new_after_n_chars: Optional[int] = None,
max_characters: int = 500,
) -> List[Element]:
"""Uses title elements to identify sections within the document for chunking.
Expand Down

0 comments on commit 63d6ce0

Please sign in to comment.