@@ -8,7 +8,7 @@ import numpy.typing as npt
8
8
from _numtype import Array_1d , CoComplex_0d , CoComplex_1d , CoComplex_1nd , CoInteger_0d , CoInteger_1d , ToObject_0d , ToObject_1nd
9
9
from numpy ._typing import _FloatLike_co
10
10
11
- from ._polytypes import _InexactObject_1d , _ToInt , _ToNumeric_0d , _ToNumeric_nd , _Tuple2
11
+ from .polynomial import _ToNumeric_0d , _ToNumeric_nd
12
12
13
13
__all__ : Final [Sequence [str ]] = ("ABCPolyBase" ,)
14
14
@@ -31,7 +31,7 @@ class ABCPolyBase(abc.ABC):
31
31
_use_unicode : ClassVar [bool ]
32
32
_symbol : str
33
33
34
- coef : _InexactObject_1d
34
+ coef : Array_1d [ np . inexact | np . object_ ]
35
35
36
36
@property
37
37
def symbol (self , / ) -> str : ...
@@ -81,7 +81,7 @@ class ABCPolyBase(abc.ABC):
81
81
def __truediv__ (self , x : _AnyOther , / ) -> Self : ...
82
82
def __floordiv__ (self , x : _AnyOther , / ) -> Self : ...
83
83
def __mod__ (self , x : _AnyOther , / ) -> Self : ...
84
- def __divmod__ (self , x : _AnyOther , / ) -> _Tuple2 [ Self ]: ...
84
+ def __divmod__ (self , x : _AnyOther , / ) -> tuple [ Self , Self ]: ...
85
85
def __pow__ (self , x : _AnyOther , / ) -> Self : ...
86
86
def __radd__ (self , x : _AnyOther , / ) -> Self : ...
87
87
def __rsub__ (self , x : _AnyOther , / ) -> Self : ...
@@ -90,7 +90,7 @@ class ABCPolyBase(abc.ABC):
90
90
def __rfloordiv__ (self , x : _AnyOther , / ) -> Self : ...
91
91
def __rdiv__ (self , x : _AnyOther , / ) -> Self : ...
92
92
def __rmod__ (self , x : _AnyOther , / ) -> Self : ...
93
- def __rdivmod__ (self , x : _AnyOther , / ) -> _Tuple2 [ Self ]: ...
93
+ def __rdivmod__ (self , x : _AnyOther , / ) -> tuple [ Self , Self ]: ...
94
94
def __len__ (self , / ) -> int : ...
95
95
def __iter__ (self , / ) -> Iterator [np .inexact | object ]: ...
96
96
def __getstate__ (self , / ) -> dict [str , Any ]: ...
@@ -107,7 +107,7 @@ class ABCPolyBase(abc.ABC):
107
107
def degree (self , / ) -> int : ...
108
108
def cutdeg (self , / , deg : int ) -> Self : ...
109
109
def trim (self , / , tol : _FloatLike_co = 0 ) -> Self : ...
110
- def truncate (self , / , size : _ToInt ) -> Self : ...
110
+ def truncate (self , / , size : SupportsIndex ) -> Self : ...
111
111
112
112
#
113
113
@overload
@@ -125,16 +125,16 @@ class ABCPolyBase(abc.ABC):
125
125
) -> _PolyT : ...
126
126
127
127
#
128
- def mapparms (self , / ) -> _Tuple2 [ Any ]: ...
128
+ def mapparms (self , / ) -> tuple [ Any , Any ]: ...
129
129
def integ (self , / , m : SupportsIndex = 1 , k : _ToNumeric_0d | CoComplex_1d = [], lbnd : _ToNumeric_0d | None = None ) -> Self : ...
130
130
def deriv (self , / , m : SupportsIndex = 1 ) -> Self : ...
131
- def roots (self , / ) -> _InexactObject_1d : ...
131
+ def roots (self , / ) -> Array_1d [ np . float64 ] | Array_1d [ np . complex128 ] : ...
132
132
def linspace (
133
133
self ,
134
134
/ ,
135
135
n : SupportsIndex = 100 ,
136
136
domain : CoComplex_1d | None = None ,
137
- ) -> _Tuple2 [ Array_1d [np .float64 | np .complex128 ]]: ...
137
+ ) -> tuple [ Array_1d [ np . float64 | np . complex128 ], Array_1d [np .float64 | np .complex128 ]]: ...
138
138
139
139
#
140
140
@overload
@@ -200,7 +200,7 @@ class ABCPolyBase(abc.ABC):
200
200
@classmethod
201
201
def basis (
202
202
cls ,
203
- deg : _ToInt ,
203
+ deg : SupportsIndex ,
204
204
domain : CoComplex_1d | None = None ,
205
205
window : CoComplex_1d | None = None ,
206
206
symbol : str = "x" ,
0 commit comments