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

the-nick-of-time / units / #8
99%

Build:
DEFAULT BRANCH: main
Ran 01 Oct 2022 05:16AM UTC
Jobs 1
Files 22
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

pending completion
#8

push

coveralls-python

the-nick-of-time
Make type verification more strict

The previous behavior was inconsistent as adding two scales of the same fundamental unit would fail while adding two scales of a compound unit would succeed
There's no good way to resolve this inconsistency in the opposite direction, as there's no record that (say) meters and kilometers are more related than meters and feet are.
This has the side effect of making the actual equality comparison in __eq__ irrelevant, as due to flyweight, `self is not other and type(other) is type(self)` implies `self.value != other.value`.

180 of 180 branches covered (100.0%)

Branch coverage included in aggregate %.

599 of 599 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #8.1 01 Oct 2022 05:16AM UTC 0
100.0
Source Files on build #8
Detailed source file information is not available for this build.
  • Back to Repo
  • ff49209f on github
  • Prev Build on main
  • Next Build on main
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