Skip to content

Commit

Permalink
Complete sentences about readonly objects in utils
Browse files Browse the repository at this point in the history
Was incorrectly removed in #958
  • Loading branch information
ksunden committed May 26, 2023
1 parent 3fb63af commit 915f7c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pint/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 915f7c2

Please sign in to comment.