summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorHolly Corbett <holly.corbett.de@gmail.com>2021-05-09 18:24:52 +0200
committerHolly Corbett <holly.corbett.de@gmail.com>2021-05-10 10:05:23 +0200
commite4ed09d58e47b1c120cb6d1f16110bf19fb711d2 (patch)
treeb339fc42ce11e7f95032e8e49810ffbcd4a1e57c /numpy/polynomial/polyutils.py
parentb6eb3d8e64e8408cdcac80caacbda9b978545ee0 (diff)
downloadnumpy-e4ed09d58e47b1c120cb6d1f16110bf19fb711d2.tar.gz
DEP: Remove PolyBase from np.polynomial.polyutils
Addresses issue #15658 by removing PolyBase class. Happy to submit alternative PR using getattr approach instead if desired.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
-rw-r--r--numpy/polynomial/polyutils.py25
1 files changed, 1 insertions, 24 deletions
diff --git a/numpy/polynomial/polyutils.py b/numpy/polynomial/polyutils.py
index 01879ecbc..f76426a60 100644
--- a/numpy/polynomial/polyutils.py
+++ b/numpy/polynomial/polyutils.py
@@ -21,14 +21,6 @@ Warning objects
RankWarning raised in least-squares fit for rank-deficient matrix.
-Base class
-----------
-
-.. autosummary::
- :toctree: generated/
-
- PolyBase Obsolete base class for the polynomial classes. Do not use.
-
Functions
---------
@@ -51,7 +43,7 @@ import numpy as np
__all__ = [
'RankWarning', 'PolyError', 'PolyDomainError', 'as_series', 'trimseq',
- 'trimcoef', 'getdomain', 'mapdomain', 'mapparms', 'PolyBase']
+ 'trimcoef', 'getdomain', 'mapdomain', 'mapparms']
#
# Warnings and Exceptions
@@ -74,21 +66,6 @@ class PolyDomainError(PolyError):
"""
pass
-#
-# Base class for all polynomial types
-#
-
-class PolyBase:
- """
- Base class for all polynomial types.
-
- Deprecated in numpy 1.9.0, use the abstract
- ABCPolyBase class instead. Note that the latter
- requires a number of virtual functions to be
- implemented.
-
- """
- pass
#
# Helper functions to convert inputs to 1-D arrays