Skip to content

Commit

Permalink
formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed May 23, 2024
1 parent 3f8bf66 commit 63c98a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pint_pandas/pint_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def _formatter(self, boxed=False):
``boxed=True``.
"""
# TODO: remove this once 0.24 is min pint version
if version_parse(pint.__version__).base_version < '0.24':
if version_parse(pint.__version__).base_version < "0.24":
float_format = pint.formatting.remove_custom_flags(
self.dtype.ureg.default_format
)
Expand Down Expand Up @@ -987,7 +987,7 @@ def quantify(self, level=-1):
def dequantify(self):
def formatter_func(dtype):
# TODO: remove once pint 0.24 is min version supported
if version_parse(pint.__version__).base_version < '0.24':
if version_parse(pint.__version__).base_version < "0.24":
formatter = "{:" + dtype.ureg.default_format + "}"
else:
formatter = "{:" + dtype.ureg.formatter.default_format + "}"
Expand Down

0 comments on commit 63c98a8

Please sign in to comment.