diff options
| author | Hernan Grecco <hgrecco@gmail.com> | 2023-04-29 19:20:54 -0300 |
|---|---|---|
| committer | Hernan Grecco <hgrecco@gmail.com> | 2023-04-29 19:20:54 -0300 |
| commit | 10f69c4870ef9acda1b5dd21f2bf87f15855d3ea (patch) | |
| tree | 01d2af512f86656703a09e59ef8aabba1c3cc5f1 /pint/util.py | |
| parent | 1208b3d503913eabe8ac96db18ee2ad14af1bdd6 (diff) | |
| download | pint-10f69c4870ef9acda1b5dd21f2bf87f15855d3ea.tar.gz | |
Remove deprecated use_decimal
Diffstat (limited to 'pint/util.py')
| -rw-r--r-- | pint/util.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/pint/util.py b/pint/util.py index 8b62009..eff3670 100644 --- a/pint/util.py +++ b/pint/util.py @@ -569,15 +569,7 @@ class ParserHelper(UnitsContainer): return cls(ONE, [(input_word, ONE)], non_int_type=non_int_type) @classmethod - def eval_token(cls, token, use_decimal=False, non_int_type=float): - # TODO: remove this code when use_decimal is deprecated - if use_decimal: - raise DeprecationWarning( - "`use_decimal` is deprecated, use `non_int_type` keyword argument when instantiating the registry.\n" - ">>> from decimal import Decimal\n" - ">>> ureg = UnitRegistry(non_int_type=Decimal)" - ) - + def eval_token(cls, token, non_int_type=float): token_type = token.type token_text = token.string if token_type == NUMBER: |
