Avatar for the hgrecco user
hgrecco
pint
BlogDocsChangelog

Performance History

Latest Results

Fix is_compatible_with edge cases with dimensionless types and strings (#2370) Following on from #1191: - UnitRegistry.is_compatible_with(obj1, obj2) was asymmetric: if obj1 was a plain number/array (not a Quantity, Unit, or str) it always returned `not isinstance(obj2, (Quantity, Unit))`, ignoring obj2's actual dimensionality. Now it swaps the arguments (delegating to obj2's is_compatible_with) when obj2 is a Quantity/Unit/str, and otherwise treats obj1 as a dimensionless Quantity. - Quantity.is_compatible_with() and Unit.is_compatible_with() used parse_units() for string arguments, which rejects strings with a scaling factor (e.g. "35000 ft"). Switched to parse_expression(). Fixes #1190
master
4 minutes ago
Merge branch 'master' into nonreducing
andrewgsavage:nonreducing
14 minutes ago
Merge branch 'master' into fix/offset-units-string-parsing-386
andrewgsavage:fix/offset-units-string-parsing-386
35 minutes ago

Latest Branches

CodSpeed Performance Gauge
+31%
Fix is_compatible_with edge cases with dimensionless types and strings#2370
58 minutes ago
b63d97c
andrewgsavage:fix/is-compatible-with-1190
CodSpeed Performance Gauge
+3%
Nonreducing#1993
56 minutes ago
91824f2
andrewgsavage:nonreducing
CodSpeed Performance Gauge
+46%
Toml#2133
1 hour ago
05c3ce3
andrewgsavage:toml
© 2026 CodSpeed Technology
Home Terms Privacy Docs