mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 15:03:21 +00:00
feat(text-splitters): ruff fixes and rules (#32502)
This commit is contained in:
@@ -39,8 +39,8 @@ class CharacterTextSplitter(TextSplitter):
|
||||
)
|
||||
|
||||
# 4. Decide merge separator:
|
||||
# - if keep_separator or lookaround → don’t re-insert
|
||||
# - else → re-insert literal separator
|
||||
# - if keep_separator or lookaround -> don't re-insert
|
||||
# - else -> re-insert literal separator
|
||||
merge_sep = ""
|
||||
if not (self._keep_separator or is_lookaround):
|
||||
merge_sep = self._separator
|
||||
|
Reference in New Issue
Block a user