summaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorRyan May <rmay@ucar.edu>2023-03-08 16:41:17 -0700
committerRyan May <rmay@ucar.edu>2023-03-08 16:44:30 -0700
commit90008e8402bde93b9c3fbb7d884d39f98ee6415c (patch)
tree799f03056fa5e5c2c27b1d1f79ad09873731af4c /CHANGES
parent5314065540de1ef99df9bd637e5064fcca2aa8d9 (diff)
downloadpint-90008e8402bde93b9c3fbb7d884d39f98ee6415c.tar.gz
Fix __dask_postcompute__() to better preserve type
In Unidata/MetPy#2945, a call to dask's .compute() was causing the resulting type to be a different Quantity() variant (from pint.util rather than the parent registry), which resulted in isinstance() failing. This changes things to use the appropriate type from `self` rather than hard-coded class names.
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 1cc6b51..1245268 100644
--- a/CHANGES
+++ b/CHANGES
@@ -12,6 +12,8 @@ Pint Changelog
(PR #1663)
- Changed frequency to angular frequency in the docs.
(PR #1668)
+- Fixed Quantity type returned from `__dask_postcompute__`.
+ (PR #1722)
### Breaking Changes