Closed ManuelHu closed 5 months ago
The 0.24 release of pint (some days ago) deprecates the default_format attribute of the registry
default_format
UnitRegistry.formatter
So add a conditional check to set the correct (non-deprecated) attribute depending on pint version
successfully tested with my container with pint 0.23
The 0.24 release of pint (some days ago) deprecates the
default_format
attribute of the registryUnitRegistry.formatter
also has been added only to 0.24: https://github.com/hgrecco/pint/commit/6c3716f3911015ddf7e3880ac688b1ed76d438e3So add a conditional check to set the correct (non-deprecated) attribute depending on pint version