diff options
author | Hernan Grecco <hgrecco@gmail.com> | 2023-05-05 18:54:48 -0300 |
---|---|---|
committer | Hernan Grecco <hgrecco@gmail.com> | 2023-05-05 18:54:48 -0300 |
commit | 10ac784342b2503a4f1b153ba2cbc4be72f75122 (patch) | |
tree | eca6e8aa03f2753bdb142abaea1ba5c4b9aa3b91 /pint | |
parent | 578e21210ef3a3932c0260654e241dff891e42b1 (diff) | |
download | pint-10ac784342b2503a4f1b153ba2cbc4be72f75122.tar.gz |
Remove deprecated usage in docs and fix introduced bug during refactoring.
Diffstat (limited to 'pint')
-rw-r--r-- | pint/facets/plain/registry.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pint/facets/plain/registry.py b/pint/facets/plain/registry.py index aca553f..c0264de 100644 --- a/pint/facets/plain/registry.py +++ b/pint/facets/plain/registry.py @@ -348,8 +348,7 @@ class GenericPlainRegistry(Generic[QuantityT, UnitT], metaclass=RegistryMeta): "Calling the getitem method from a UnitRegistry is deprecated. " "use `parse_expression` method or use the registry as a callable." ) - return self.Quantity() - # return self.parse_expression(item) + return self.parse_expression(item) def __contains__(self, item: str) -> bool: """Support checking prefixed units with the `in` operator""" |