Skip to content

Commit 39c1643

Browse files
committed
Fix dict parameter
1 parent 50bd427 commit 39c1643

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

uniflow/op/extract/split/pattern_splitter_op.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ class PatternSplitter(Op):
1414
default_separators = "\n\n|\n"
1515
default_min_chunk_size = 1
1616

17-
def __init__(
18-
self, splitterConfig: dict[str, any], name: str = "paragraph_split_op"
19-
) -> None:
17+
def __init__(self, splitterConfig: dict, name: str = "paragraph_split_op") -> None:
2018
"""Pattern Splitter Op Constructor
2119
2220
Args:

uniflow/op/extract/split/recursive_character_splitter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RecursiveCharacterSplitter(Op):
2020

2121
def __init__(
2222
self,
23-
splitterConfig: dict[str, any],
23+
splitterConfig: dict,
2424
name: str = "recursive_character_splitter_op",
2525
) -> None:
2626
"""Recursive Splitter Op Constructor

0 commit comments

Comments
 (0)