Skip to content

fix: skip out-of-range indexes in pull_at - #253

Merged
dgilland merged 2 commits into
dgilland:developfrom
santhreal:fix/pull-at-oob-index
Jul 26, 2026
Merged

fix: skip out-of-range indexes in pull_at#253
dgilland merged 2 commits into
dgilland:developfrom
santhreal:fix/pull-at-oob-index

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

pydash.arrays.pull_at hits IndexError when index past end of array. This PR fixes the regression with a focused test covering the case.

Out-of-range or duplicate indexes made del raise IndexError. Skip
indexes outside the array bounds so pull_at degrades like lodash.
Replace the isinstance/bounds continues with try/except IndexError so
non-int indexes still TypeError and duplicate deletes soft-skip.
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — santhreal:fix/pull-at-oob-index into dgilland:develop

@dgilland
dgilland merged commit 39e0464 into dgilland:develop Jul 26, 2026
12 checks passed
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.

3 participants