Skip to content

Fix slice fill behavior when iterable divides evenly#2153

Closed
BlocksecPHD wants to merge 1 commit intopallets:mainfrom
BlocksecPHD:fix-slice-fill-even-divisible
Closed

Fix slice fill behavior when iterable divides evenly#2153
BlocksecPHD wants to merge 1 commit intopallets:mainfrom
BlocksecPHD:fix-slice-fill-even-divisible

Conversation

@BlocksecPHD
Copy link
Copy Markdown

Summary

  • avoid appending fill_with when the iterable length divides evenly by the requested slice count
  • add sync and async regression tests for the even-division case

Testing

  • PYTHONPATH=src ./.venv/bin/pytest -q tests/test_filters.py -k 'slice'\n- PYTHONPATH=src ./.venv/bin/pytest -q tests/test_async_filters.py -k 'slice'\n- ./.venv/bin/uv run --group tests pytest -q tests/test_filters.py -k 'slice'\n- ./.venv/bin/uv run --group tests pytest -q tests/test_async_filters.py -k 'slice'

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.

2 participants