From 2aaf325dd7e1fae2a6cd6dc63031ccff040487c4 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 10 May 2023 08:56:41 -0500 Subject: DOC: Add symbol in docstring for classes derived from ABCPolyBase A 'symbol' argument was added in ABCPolyBase in 1.24 and documented there, but the docstrings for derived classes (e.g., Polynomial) were not updated. --- numpy/polynomial/hermite.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'numpy/polynomial/hermite.py') diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py index e20339121..210df25f5 100644 --- a/numpy/polynomial/hermite.py +++ b/numpy/polynomial/hermite.py @@ -1675,6 +1675,12 @@ class Hermite(ABCPolyBase): Window, see `domain` for its use. The default value is [-1, 1]. .. versionadded:: 1.6.0 + symbol : str, optional + Symbol used to represent the independent variable in string + representations of the polynomial expression, e.g. for printing. + The symbol must be a valid Python identifier. Default value is 'x'. + + .. versionadded:: 1.24 """ # Virtual Functions -- cgit v1.2.1