Skip to content

chore: improve rich maintenance path#4131

Open
lphuc2250gma wants to merge 1 commit into
Textualize:masterfrom
lphuc2250gma:maint/20260520203748
Open

chore: improve rich maintenance path#4131
lphuc2250gma wants to merge 1 commit into
Textualize:masterfrom
lphuc2250gma:maint/20260520203748

Conversation

@lphuc2250gma
Copy link
Copy Markdown

Summary:

  • Add edge-case unit tests to tests/test_cells.py covering cell_len/set_cell_size/chop_cells behavior for empty strings, strings containing zero-width joiner sequences, mixed wide/narrow CJK characters, and set_cell_size with total exactly equal to current cell length (boundary). Tighten type annotations in rich/cells.py if any function parameters or returns are missing precise types (e.g., Iterable vs List).
  • Keep the change narrow so it is straightforward to review.

Notes:

  • I kept this scoped to the relevant implementation and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant