summaryrefslogtreecommitdiff
path: root/pint
diff options
context:
space:
mode:
authorJon Thielen <github@jont.cc>2019-12-08 18:25:24 -0600
committerJon Thielen <github@jont.cc>2019-12-08 21:40:03 -0600
commit3fe1d273cb5515dddb3935b12c869039d3b6b5b7 (patch)
treeb7a8871916accab44812064bd5428ef12ffa61ef /pint
parentbe5b23a541ef84a8e1b11289fafddb46011e5d0d (diff)
downloadpint-3fe1d273cb5515dddb3935b12c869039d3b6b5b7.tar.gz
Update docs and changelog for NEP-18 support
Diffstat (limited to 'pint')
-rw-r--r--pint/quantity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pint/quantity.py b/pint/quantity.py
index cfa9df5..ca6f25f 100644
--- a/pint/quantity.py
+++ b/pint/quantity.py
@@ -1308,6 +1308,8 @@ class Quantity(PrettyIPython, SharedRegistryObject):
__nonzero__ = __bool__
# NumPy function/ufunc support
+ __array_priority__ = 17
+
def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
if method != "__call__":
# Only handle ufuncs as callables