Skip to content

Commit 165febe

Browse files
committed
lint
1 parent 3f34165 commit 165febe

File tree

2 files changed

+266
-266
lines changed

2 files changed

+266
-266
lines changed

libs/text-splitters/langchain_text_splitters/jsx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""JavaScript framework text splitter."""
22

33
import re
4-
from typing import Any
4+
from typing import Any, Optional
55

66
from langchain_text_splitters import RecursiveCharacterTextSplitter
77

@@ -27,7 +27,7 @@ class JSFrameworkTextSplitter(RecursiveCharacterTextSplitter):
2727

2828
def __init__(
2929
self,
30-
separators: list[str] | None = None,
30+
separators: Optional[list[str]] = None,
3131
chunk_size: int = 2000,
3232
chunk_overlap: int = 0,
3333
**kwargs: Any,

0 commit comments

Comments
 (0)