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

ultimate-notion / ultimate-notion / 27943430721 / 5
87%
main: 87%

Build:
DEFAULT BRANCH: main
Ran 22 Jun 2026 09:40AM UTC
Files 38
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

22 Jun 2026 09:35AM UTC coverage: 87.309% (-0.04%) from 87.351%
27943430721.5

push

github

web-flow
Replace cast downcasts with isinstance guards in core and session (#264)

Remove four `cast` downcasts, replacing each with an `isinstance` guard
that narrows for the type checker and raises `TypeError` otherwise,
matching the existing narrowing idiom (e.g. the sibling `_cache_get`):

- `Wrapper.wrap_obj_ref` collapses both branches onto a single `hl_obj`,
  then narrows it to `Self` via `isinstance(hl_obj, cls)` (`cls` is
  `type[Self]`), covering both the direct-build and recursive-resolve
  cases. Drops two `cast(Self, ...)` calls.
- `Session._cache_add` narrows the `setdefault` result with
  `isinstance(cached, type(obj))`, mirroring `_cache_get`.

Both files can now drop their unused `cast` import.

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

6584 of 7541 relevant lines covered (87.31%)

0.87 hits per line

Source Files on job run-ubuntu-latest-3.11 - 27943430721.5
  • Tree
  • List 38
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27943430721
  • 4bccc173 on github
  • Prev Job for on main (#27923030995.5)
  • Next Job for on main (#27945208756.1)
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