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

ultimate-notion / ultimate-notion / 27943430721
87%

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

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

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>

8 of 12 new or added lines in 2 files covered. (66.67%)

6584 of 7541 relevant lines covered (87.31%)

6.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
84.11
-1.03% src/ultimate_notion/core.py
2
80.99
-0.44% src/ultimate_notion/session.py
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.14 - 27943430721.1 22 Jun 2026 09:38AM UTC 38
87.31
GitHub Action Run
2 run-windows-latest-3.10 - 27943430721.2 22 Jun 2026 09:40AM UTC 38
84.55
GitHub Action Run
3 run-macos-latest-3.10 - 27943430721.3 22 Jun 2026 09:38AM UTC 38
87.31
GitHub Action Run
4 run-ubuntu-latest-3.12 - 27943430721.4 22 Jun 2026 09:38AM UTC 38
87.31
GitHub Action Run
5 run-ubuntu-latest-3.11 - 27943430721.5 22 Jun 2026 09:38AM UTC 38
87.31
GitHub Action Run
6 run-ubuntu-latest-3.13 - 27943430721.6 22 Jun 2026 09:38AM UTC 38
87.31
GitHub Action Run
7 run-ubuntu-latest-3.10 - 27943430721.7 22 Jun 2026 09:40AM UTC 38
87.31
GitHub Action Run
Source Files on build 27943430721
  • Tree
  • List 38
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27943430721
  • 4bccc173 on github
  • Prev Build on main (#27923030995)
  • Next Build on main (#27945208756)
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