sycamore
sycamore copied to clipboard
Updated chunker.py
Summary
The improved implementation addresses several key issues and adds important features:
- Generic Type Support: Added proper generic type support using TypeVar, making the chunker work with any sequence type, not just text.
- Better Error Handling:
- Empty Input Handling: Properly handles empty input sequences by returning an empty list
- Improved Documentation:
Going to close this after 2024-02-10 unless there is action on it.