summaryrefslogtreecommitdiff
path: root/numpy/polynomial
diff options
context:
space:
mode:
authorBvB93 <43369155+BvB93@users.noreply.github.com>2022-10-06 13:24:39 +0200
committerBvB93 <43369155+BvB93@users.noreply.github.com>2022-11-14 17:43:37 +0100
commita566f8144fca19b340bdf1ffb19973bb1fc6ca56 (patch)
treef83aa78fbb60eb4fbb8ca12eb8e5f4074652d69c /numpy/polynomial
parent2b5328c287539db7f96dc488409557a75c67db74 (diff)
downloadnumpy-a566f8144fca19b340bdf1ffb19973bb1fc6ca56.tar.gz
TYP,ENH: Add annotations for the new `ABCPolyBase.symbol` property
Xref https://github.com/numpy/numpy/pull/16154
Diffstat (limited to 'numpy/polynomial')
-rw-r--r--numpy/polynomial/_polybase.pyi4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/polynomial/_polybase.pyi b/numpy/polynomial/_polybase.pyi
index 537221c45..25c740dbe 100644
--- a/numpy/polynomial/_polybase.pyi
+++ b/numpy/polynomial/_polybase.pyi
@@ -9,6 +9,8 @@ class ABCPolyBase(abc.ABC):
maxpower: ClassVar[int]
coef: Any
@property
+ def symbol(self) -> str: ...
+ @property
@abc.abstractmethod
def domain(self): ...
@property
@@ -21,7 +23,7 @@ class ABCPolyBase(abc.ABC):
def has_samedomain(self, other): ...
def has_samewindow(self, other): ...
def has_sametype(self, other): ...
- def __init__(self, coef, domain=..., window=...): ...
+ def __init__(self, coef, domain=..., window=..., symbol: str = ...) -> None: ...
def __format__(self, fmt_str): ...
def __call__(self, arg): ...
def __iter__(self): ...