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

ultimate-notion / ultimate-notion / 27923030995
87%

Build:
DEFAULT BRANCH: main
Ran 22 Jun 2026 12:53AM 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 12:50AM UTC coverage: 87.351% (-0.04%) from 87.389%
27923030995

push

github

web-flow
Replace cast downcasts in blocks.py with isinstance guards (#263)

Remove three `cast` downcasts in `blocks.py`, replacing each with an
`isinstance` guard that raises `TypeError` (matching the existing
narrowing idiom, since ruff S101 disallows asserts in source):

- `ChildrenMixin.append` narrows `self` to `Block | Page` once via a
  local, replacing both `cast(Block, self)` and `cast(ParentBlock, self)`.
  The old `ParentBlock` cast also misrepresented the `Page` case, since
  `Page` also subclasses `ChildrenMixin` and `_chunk_blocks_for_api`
  accepts `Block | Page`.
- `Block.parent` narrows `super().parent` to `Block | Page | None`.

This lets the now-unused `cast` import be dropped.

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

10 of 14 new or added lines in 1 file covered. (71.43%)

1 existing line in 1 file now uncovered.

6581 of 7534 relevant lines covered (87.35%)

6.09 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
85.84
-0.29% src/ultimate_notion/blocks.py

Coverage Regressions

Lines Coverage ∆ File
1
85.84
-0.29% src/ultimate_notion/blocks.py
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.10 - 27923030995.1 22 Jun 2026 12:54AM UTC 38
87.35
GitHub Action Run
2 run-windows-latest-3.10 - 27923030995.2 22 Jun 2026 12:54AM UTC 38
84.59
GitHub Action Run
3 run-macos-latest-3.10 - 27923030995.3 22 Jun 2026 12:53AM UTC 38
87.35
GitHub Action Run
4 run-ubuntu-latest-3.13 - 27923030995.4 22 Jun 2026 12:53AM UTC 38
87.35
GitHub Action Run
5 run-ubuntu-latest-3.11 - 27923030995.5 22 Jun 2026 12:53AM UTC 38
87.35
GitHub Action Run
6 run-ubuntu-latest-3.12 - 27923030995.6 22 Jun 2026 12:53AM UTC 38
87.35
GitHub Action Run
7 run-ubuntu-latest-3.14 - 27923030995.7 22 Jun 2026 12:53AM UTC 38
87.35
GitHub Action Run
Source Files on build 27923030995
  • Tree
  • List 38
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27923030995
  • 54557a09 on github
  • Prev Build on main (#27921340259)
  • Next Build on main (#27943430721)
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