diff options
author | Jon Thielen <github@jont.cc> | 2019-12-08 18:25:24 -0600 |
---|---|---|
committer | Jon Thielen <github@jont.cc> | 2019-12-08 21:40:03 -0600 |
commit | 3fe1d273cb5515dddb3935b12c869039d3b6b5b7 (patch) | |
tree | b7a8871916accab44812064bd5428ef12ffa61ef /pint | |
parent | be5b23a541ef84a8e1b11289fafddb46011e5d0d (diff) | |
download | pint-3fe1d273cb5515dddb3935b12c869039d3b6b5b7.tar.gz |
Update docs and changelog for NEP-18 support
Diffstat (limited to 'pint')
-rw-r--r-- | pint/quantity.py | 2 |
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 |