sycamore icon indicating copy to clipboard operation
sycamore copied to clipboard

Updated chunker.py

Open Ranjana761 opened this issue 1 year ago • 1 comments

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:

Ranjana761 avatar Oct 26 '24 18:10 Ranjana761

Going to close this after 2024-02-10 unless there is action on it.

eric-anderson avatar Feb 04 '25 00:02 eric-anderson