1
1
import abc
2
2
from collections .abc import Iterator , Mapping , Sequence
3
- from typing import Any , ClassVar , Final , Literal , Self , SupportsIndex , TypeAlias , overload
3
+ from typing import Any , ClassVar , Literal , Self , SupportsIndex , TypeAlias , overload
4
4
from typing_extensions import TypeIs , TypeVar , override
5
5
6
6
import _numtype as _nt
7
7
import numpy as np
8
- import numpy .typing as npt
9
- from numpy ._typing import _FloatLike_co
10
8
11
9
from .polynomial import _ToNumeric_0d , _ToNumeric_nd
12
10
13
- __all__ : Final [ Sequence [ str ]] = ( "ABCPolyBase" ,)
11
+ __all__ = [ "ABCPolyBase" ]
14
12
15
13
###
16
14
@@ -65,11 +63,11 @@ class ABCPolyBase(abc.ABC):
65
63
@overload
66
64
def __call__ (self , / , arg : _nt .CoComplex_0d ) -> _nt .inexact64 : ...
67
65
@overload
68
- def __call__ (self , / , arg : _nt .CoComplex_1nd ) -> npt . NDArray [_nt .inexact64 ]: ...
66
+ def __call__ (self , / , arg : _nt .CoComplex_1nd ) -> _nt . Array [_nt .inexact64 ]: ...
69
67
@overload
70
68
def __call__ (self , / , arg : _nt .ToObject_0d ) -> Any : ...
71
69
@overload
72
- def __call__ (self , / , arg : _nt .ToObject_1nd ) -> npt . NDArray [np .object_ ]: ...
70
+ def __call__ (self , / , arg : _nt .ToObject_1nd ) -> _nt . Array [np .object_ ]: ...
73
71
74
72
#
75
73
@override
@@ -112,7 +110,7 @@ class ABCPolyBase(abc.ABC):
112
110
def copy (self , / ) -> Self : ...
113
111
def degree (self , / ) -> int : ...
114
112
def cutdeg (self , / , deg : int ) -> Self : ...
115
- def trim (self , / , tol : _FloatLike_co = 0 ) -> Self : ...
113
+ def trim (self , / , tol : _nt . CoFloating_nd = 0 ) -> Self : ...
116
114
def truncate (self , / , size : SupportsIndex ) -> Self : ...
117
115
118
116
#
@@ -169,7 +167,7 @@ class ABCPolyBase(abc.ABC):
169
167
y : _nt .CoComplex_1d ,
170
168
deg : _nt .CoInteger_0d | _nt .CoInteger_1d ,
171
169
domain : _nt .CoComplex_1d | None = None ,
172
- rcond : _FloatLike_co | None = None ,
170
+ rcond : _nt . CoFloating_nd | None = None ,
173
171
full : Literal [False ] = False ,
174
172
w : _nt .CoComplex_1d | None = None ,
175
173
window : _nt .CoComplex_1d | None = None ,
@@ -183,7 +181,7 @@ class ABCPolyBase(abc.ABC):
183
181
y : _nt .CoComplex_1d ,
184
182
deg : _nt .CoInteger_0d | _nt .CoInteger_1d ,
185
183
domain : _nt .CoComplex_1d | None ,
186
- rcond : _FloatLike_co | None ,
184
+ rcond : _nt . CoFloating_nd | None ,
187
185
full : Literal [True ],
188
186
w : _nt .CoComplex_1d | None = None ,
189
187
window : _nt .CoComplex_1d | None = None ,
@@ -197,7 +195,7 @@ class ABCPolyBase(abc.ABC):
197
195
y : _nt .CoComplex_1d ,
198
196
deg : _nt .CoInteger_0d | _nt .CoInteger_1d ,
199
197
domain : _nt .CoComplex_1d | None = None ,
200
- rcond : _FloatLike_co | None = None ,
198
+ rcond : _nt . CoFloating_nd | None = None ,
201
199
* ,
202
200
full : Literal [True ],
203
201
w : _nt .CoComplex_1d | None = None ,
0 commit comments