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

Toilal / rebulk / 28253209765 / 7
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 26 Jun 2026 05:05PM UTC
Files 17
Run time 1s
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 05:05PM UTC coverage: 95.587% (-0.4%) from 96.031%
28253209765.7

push

github

Toilal
feat(typing): typed keys for type-safe value retrieval (v5 POC)

Introduce Key[T], a typed handle binding a match name to its value type.
Passing it to a builder method (key=...) wires up both the match name and
formatter, and reading it back is fully typed instead of Any:

    YEAR = Key("year", int)
    matches = Rebulk().regex(r"\d{4}", key=YEAR).matches("born 1984")
    matches[YEAR]      # int | None
    matches.all(YEAR)  # list[int]

This sidesteps the heterogeneous-collection erasure problem: the value
type is named at the read site (via the key), so each access has a single
concrete T, no existentials needed. The dynamic engine is untouched and
the string-based API is unchanged — Key is purely additive.

POC scope: the declaration -> matches[KEY] / matches.all(KEY) path for
scalar value types. A typed result model (.to(dataclass)) and a formatter
(not just type[T]) variant are left for follow-up.

Refs #43

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

1733 of 1813 relevant lines covered (95.59%)

0.96 hits per line

Source Files on job 28253209765.7
  • Tree
  • List 17
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28253209765
  • 119b465d on github
  • Prev Job for on feat/typed-keys-poc (#28251563767.1)
  • Next Job for on feat/typed-keys-poc (#28260226274.11)
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