diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-11-14 18:08:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 18:08:30 -0600 |
commit | d1e0a43ff910e15034997b9b646b38014382fe6e (patch) | |
tree | 14970cfe5421541fdd3fe0f4e77a23101e39abb1 /numpy/lib/polynomial.py | |
parent | 13a69b5e0fc409928dc81cdce405043e7c71cd0a (diff) | |
parent | a0833836e07aeabde98eb3cfa1a583b3dd4a9439 (diff) | |
download | numpy-d1e0a43ff910e15034997b9b646b38014382fe6e.tar.gz |
Merge pull request #12382 from shoyer/finish-set-module
ENH: set correct __module__ for objects in numpy's public API
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index c2702f0a7..7cbe80b46 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -16,6 +16,7 @@ import numpy.core.numeric as NX from numpy.core import (isscalar, abs, finfo, atleast_1d, hstack, dot, array, ones) from numpy.core import overrides +from numpy.core.overrides import set_module from numpy.lib.twodim_base import diag, vander from numpy.lib.function_base import trim_zeros from numpy.lib.type_check import iscomplex, real, imag, mintypecode @@ -26,6 +27,7 @@ array_function_dispatch = functools.partial( overrides.array_function_dispatch, module='numpy') +@set_module('numpy') class RankWarning(UserWarning): """ Issued by `polyfit` when the Vandermonde matrix is rank deficient. @@ -992,6 +994,7 @@ def _raise_power(astr, wrap=70): return output + astr[n:] +@set_module('numpy') class poly1d(object): """ A one-dimensional polynomial class. |