diff options
author | Hernan Grecco <hgrecco@gmail.com> | 2023-05-11 17:16:06 -0300 |
---|---|---|
committer | Hernan Grecco <hgrecco@gmail.com> | 2023-05-11 17:16:06 -0300 |
commit | 2a89a4423f0bf6e4ffd6179170aae9c475b61643 (patch) | |
tree | fb08cc845d48a1fb4071d2899d5e9e4cce57dff0 | |
parent | f8a7fed4bce13e545a4f1dc96057fcbf4067e835 (diff) | |
download | pint-2a89a4423f0bf6e4ffd6179170aae9c475b61643.tar.gz |
SharedObject module should be
-rw-r--r-- | docs/user/defining-quantities.rst | 2 | ||||
-rw-r--r-- | pint/util.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/user/defining-quantities.rst b/docs/user/defining-quantities.rst index 297ddc8..e40b08c 100644 --- a/docs/user/defining-quantities.rst +++ b/docs/user/defining-quantities.rst @@ -124,7 +124,7 @@ their appropriate objects: >>> Q_('2.54') <Quantity(2.54, 'dimensionless')> >>> type(Q_('2.54')) - <class 'pint.util.Quantity'> + <class 'pint.Quantity'> .. note:: Pint's rule for parsing strings with a mixture of numbers and units is that **units are treated with the same precedence as numbers**. diff --git a/pint/util.py b/pint/util.py index 950d223..e250b0e 100644 --- a/pint/util.py +++ b/pint/util.py @@ -1144,7 +1144,7 @@ def create_class_with_registry( """ class_body = { - "__module__": f"pint.{base_class.__name__}", + "__module__": "pint", "_REGISTRY": registry, } |