mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
fix(rag): annotate step with Final to pass type discipline gate
This commit is contained in:
parent
01823d12a8
commit
177ad4ce2a
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ class RecursiveCharacterTextSplitter:
|
|||
"""Force split text by chunk_size when no separator works."""
|
||||
chunks: Final[list[str]] = []
|
||||
start = 0
|
||||
step = max(self.chunk_size - self.chunk_overlap, 1)
|
||||
step: Final = max(self.chunk_size - self.chunk_overlap, 1)
|
||||
|
||||
while start < len(text):
|
||||
end = start + self.chunk_size
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue