Skip to content

[rejected AI] Do not append fill_with in slice filter when length is divisible - #2261

Closed
kishansaaai wants to merge 1 commit into
pallets:mainfrom
kishansaaai:fix/slice-filter-divisible-length
Closed

kishansaaai wants to merge 1 commit into
pallets:mainfrom
kishansaaai:fix/slice-filter-divisible-length

Conversation

@kishansaaai

@kishansaaai kishansaaai commented Sep 4, 2026 •

Copy link
Copy Markdown

.

When length % slices == 0, every slice already has the exact same length (length // slices), so no slice is missing items. Previously, slice_number >= slices_with_extra evaluated to slice_number >= 0 (True for all slices), causing fill_with to be appended to every single slice.

Fixes #2118
@davidism

davidism commented Sep 4, 2026

Copy link
Copy Markdown
Member

@davidism davidism closed this Sep 4, 2026
@davidism davidism changed the title Do not append fill_with in slice filter when length is divisible [rejected AI] Do not append fill_with in slice filter when length is divisible Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants