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

Toilal / rebulk / 28249870856
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 26 Jun 2026 04:03PM UTC
Jobs 7
Files 16
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

26 Jun 2026 04:03PM UTC coverage: 96.031%. Remained the same
28249870856

push

github

Toilal
feat(typing): precise return types for query methods via @overload

The library ships py.typed and runs mypy --strict, yet every query method
on Matches/Match returned Any because filter_index() returns a list, a
single Match, or None depending on whether index is passed. Downstream
users therefore got no usable type information.

Add @overload signatures so the return type is now:
- list[Match] when no index is given
- Match | None when index (or a predicate-as-int shortcut) is given

Covered: named, tagged, starting, ending, previous, next, conflicting,
at_match, at_span, at_index, range, holes, chain_before, chain_after
(Matches) and crop, split (Match). Pattern.matches / BasePattern.matches
gain Literal[bool] overloads so with_raw_matches=True yields a tuple and
the default yields list[Match]; Chain.matches is aligned (its prior
type: ignore[override] is no longer needed).

Pure typing change, no runtime behavior change. Redundant casts that the
new signatures make unnecessary are removed, and a few tests are narrowed
where a method now correctly returns Match | None.

Closes #33

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

136 of 136 new or added lines in 4 files covered. (100.0%)

17 existing lines in 3 files now uncovered.

1718 of 1789 relevant lines covered (96.03%)

6.7 hits per line

Coverage Regressions

Lines Coverage ∆ File
12
95.41
0.0% rebulk/pattern.py
4
93.91
0.0% rebulk/chain.py
1
98.6
0.0% rebulk/match.py
Jobs
ID Job ID Ran Files Coverage
1 28249870856.1 26 Jun 2026 04:03PM UTC 16
96.03
GitHub Action Run
2 28249870856.2 26 Jun 2026 04:03PM UTC 16
95.58
GitHub Action Run
3 28249870856.3 26 Jun 2026 04:03PM UTC 16
95.58
GitHub Action Run
4 28249870856.4 26 Jun 2026 04:03PM UTC 16
96.03
GitHub Action Run
5 28249870856.5 26 Jun 2026 04:03PM UTC 16
95.58
GitHub Action Run
6 28249870856.6 26 Jun 2026 04:03PM UTC 16
96.03
GitHub Action Run
7 28249870856.7 26 Jun 2026 04:03PM UTC 16
95.64
GitHub Action Run
Source Files on build 28249870856
  • Tree
  • List 16
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 873f6a00 on github
  • Prev Build on feat/typed-query-overloads (#28249870856)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc