• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dgilland / pydash / 37143388357
100%

Build:
DEFAULT BRANCH: develop
Ran 03 Oct 2026 06:14PM UTC
Jobs 5
Files 70
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Oct 2026 06:13PM UTC coverage: 100.0%. Remained the same
37143388357

push

github

web-flow
Support non-sequence iterables in nth (#274)

* Support non-sequence iterables in nth

nth is annotated t.Iterable[T], but indexes by position through pyd.get,
which needs a sequence. Anything else fell through to attribute lookup
and returned the None default, so a generator, set, dict view or zip
object silently gave the wrong answer rather than raising:

    nth([1, 2, 3, 4], 1)        -> 2
    nth(iter([1, 2, 3, 4]), 1)  -> None

Realize the input when it is neither a Sequence nor a Mapping. A mapping
is left alone deliberately: it is indexed by key rather than by position,
so nth({0: "x"}, 0) is "x", and realizing one would look up its keys
instead.

This is the same shape as the recent scale() fix for iterators (#260).
Sequence behaviour is unchanged for lists, tuples, ranges, strings and
bytes.

* fix(lint): PLW0108

---------

Co-authored-by: Derrick Gilland <dgilland@gmail.com>

13193 of 13193 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.12 - 37143388357.1 03 Oct 2026 06:15PM UTC 14
100.0
GitHub Action Run
2 3.14 - 37143388357.2 03 Oct 2026 06:15PM UTC 14
100.0
GitHub Action Run
3 3.10 - 37143388357.3 03 Oct 2026 06:15PM UTC 14
100.0
GitHub Action Run
4 3.11 - 37143388357.4 03 Oct 2026 06:15PM UTC 14
100.0
GitHub Action Run
5 3.13 - 37143388357.5 03 Oct 2026 06:15PM UTC 14
100.0
GitHub Action Run
Source Files on build 37143388357
  • Tree
  • List 70
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 10e86c45 on github
  • Prev Build on develop (#37142934077)
  • Next Build on develop (#37143794138)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc