We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f34165 commit 165febeCopy full SHA for 165febe
libs/text-splitters/langchain_text_splitters/jsx.py
@@ -1,7 +1,7 @@
1
"""JavaScript framework text splitter."""
2
3
import re
4
-from typing import Any
+from typing import Any, Optional
5
6
from langchain_text_splitters import RecursiveCharacterTextSplitter
7
@@ -27,7 +27,7 @@ class JSFrameworkTextSplitter(RecursiveCharacterTextSplitter):
27
28
def __init__(
29
self,
30
- separators: list[str] | None = None,
+ separators: Optional[list[str]] = None,
31
chunk_size: int = 2000,
32
chunk_overlap: int = 0,
33
**kwargs: Any,
0 commit comments