diff --git a/pint/util.py b/pint/util.py index 09aed5f93..e940ea6c2 100644 --- a/pint/util.py +++ b/pint/util.py @@ -440,6 +440,7 @@ class UnitsContainer(Mapping[str, Scalar]): exponent and implements the corresponding operations. UnitsContainer is a read-only mapping. All operations (even in place ones) + return new instances. Parameters ---------- @@ -678,6 +679,7 @@ class ParserHelper(UnitsContainer): Briefly is a UnitsContainer with a scaling factor. ParserHelper is a read-only mapping. All operations (even in place ones) + return new instances. WARNING : The hash value used does not take into account the scale attribute so be careful if you use it as a dict key and then two unequal