From ac21b2239d791a84a2d60f46a25c0065fed2052d Mon Sep 17 00:00:00 2001 From: Matt Carey Date: Sun, 3 Dec 2023 21:41:18 -0600 Subject: [PATCH] update doctests to reflect removal of int ranges --- nettlesome/quantities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nettlesome/quantities.py b/nettlesome/quantities.py index 879ce2b..c9dd088 100644 --- a/nettlesome/quantities.py +++ b/nettlesome/quantities.py @@ -202,7 +202,7 @@ def reverse_meaning(self) -> None: """ Change self.sign in place to reverse the range of numbers covered. - >>> quantity_range = UnitRange(quantity="100 meters", sign=">") + >>> quantity_range = UnitRange(quantity_magnitude="100", quantity_units="meters", sign=">") >>> str(quantity_range) 'greater than 100 meter' >>> quantity_range.reverse_meaning() @@ -528,7 +528,7 @@ def interval(self) -> Union[FiniteSet, Interval, sympy.Union]: ... sign=">=", ... expression="10 grams") >>> weight.interval - Interval(10, oo) + Interval(10.0000000000000, oo) """ return self.quantity_range.interval