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

ultimate-notion / ultimate-notion / 27778111238 / 2
87%
main: 87%

Build:
DEFAULT BRANCH: main
Ran 18 Jun 2026 05:44PM UTC
Files 38
Run time 2s
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

18 Jun 2026 05:40PM UTC coverage: 88.072% (-0.002%) from 88.074%
27778111238.2

push

github

web-flow
Drop metaclass type: ignore by moving to_list onto OptionNSType (#206)

The `OptionNSType.__len__` metaclass method annotated its receiver as
`cls: type[OptionNS]` so the body could call `cls.to_list()`, but mypy
requires the receiver to be a supertype of the containing class (the
metaclass itself), producing a `[misc]` "Self argument missing" error
that was suppressed with a `type: ignore`.

`__len__` and `to_list` both operate on the namespace class itself, not
on instances, so they belong on the metaclass. Moving `to_list` from a
`@classmethod` on `OptionNS` onto `OptionNSType` lets mypy infer `cls`
as the metaclass instance and resolve `to_list` without the ignore, the
inaccurate `cls` annotation, or the outdated ToDo. Public behaviour
(`MyOptions.to_list()`, `len(MyOptions)`) is unchanged.

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

6520 of 7403 relevant lines covered (88.07%)

0.88 hits per line

Source Files on job run-ubuntu-latest-3.14 - 27778111238.2
  • Tree
  • List 38
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27778111238
  • f4cc44a1 on github
  • Prev Job for on main (#27776236680.2)
  • Next Job for on main (#27778855870.3)
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