Skip to content

Commit a73e1db

Browse files
committed
🏷️ fix stubtest errors in numpy.polynomial.laguerre
1 parent 2ecb498 commit a73e1db

File tree

2 files changed

+29
-76
lines changed

2 files changed

+29
-76
lines changed

src/numpy-stubs/polynomial/laguerre.pyi

Lines changed: 29 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,34 @@ import numpy as np
44
from _numtype import Array_1d
55

66
from ._polybase import ABCPolyBase
7-
from ._polytypes import (
8-
_FuncBinOp,
9-
_FuncCompanion,
10-
_FuncDer,
11-
_FuncFit,
12-
_FuncFromRoots,
13-
_FuncGauss,
14-
_FuncInteg,
15-
_FuncLine,
16-
_FuncPoly2Ortho,
17-
_FuncPow,
18-
_FuncRoots,
19-
_FuncUnOp,
20-
_FuncVal,
21-
_FuncVal2D,
22-
_FuncVal3D,
23-
_FuncValFromRoots,
24-
_FuncVander,
25-
_FuncVander2D,
26-
_FuncVander3D,
27-
_FuncWeight,
7+
from .legendre import (
8+
leg2poly as lag2poly,
9+
legadd as lagadd,
10+
legcompanion as lagcompanion,
11+
legder as lagder,
12+
legdiv as lagdiv,
13+
legfit as lagfit,
14+
legfromroots as lagfromroots,
15+
leggauss as laggauss,
16+
leggrid2d as laggrid2d,
17+
leggrid3d as laggrid3d,
18+
legint as lagint,
19+
legline as lagline,
20+
legmul as lagmul,
21+
legmulx as lagmulx,
22+
legpow as lagpow,
23+
legroots as lagroots,
24+
legsub as lagsub,
25+
legtrim as lagtrim,
26+
legval as lagval,
27+
legval2d as lagval2d,
28+
legval3d as lagval3d,
29+
legvander as lagvander,
30+
legvander2d as lagvander2d,
31+
legvander3d as lagvander3d,
32+
legweight as lagweight,
33+
poly2leg as poly2lag,
2834
)
29-
from .polyutils import trimcoef as lagtrim
3035

3136
__all__ = [
3237
"Laguerre",
@@ -62,38 +67,13 @@ __all__ = [
6267
"poly2lag",
6368
]
6469

70+
###
71+
6572
lagdomain: Final[Array_1d[np.float64]] = ...
6673
lagzero: Final[Array_1d[np.int_]] = ...
6774
lagone: Final[Array_1d[np.int_]] = ...
6875
lagx: Final[Array_1d[np.int_]] = ...
6976

70-
poly2lag: Final[_FuncPoly2Ortho[L["poly2lag"]]] = ...
71-
lag2poly: Final[_FuncUnOp[L["lag2poly"]]] = ...
72-
lagline: Final[_FuncLine[L["lagline"]]] = ...
73-
lagfromroots: Final[_FuncFromRoots[L["lagfromroots"]]] = ...
74-
lagadd: Final[_FuncBinOp[L["lagadd"]]] = ...
75-
lagsub: Final[_FuncBinOp[L["lagsub"]]] = ...
76-
lagmulx: Final[_FuncUnOp[L["lagmulx"]]] = ...
77-
lagmul: Final[_FuncBinOp[L["lagmul"]]] = ...
78-
lagdiv: Final[_FuncBinOp[L["lagdiv"]]] = ...
79-
lagpow: Final[_FuncPow[L["lagpow"]]] = ...
80-
lagder: Final[_FuncDer[L["lagder"]]] = ...
81-
lagint: Final[_FuncInteg[L["lagint"]]] = ...
82-
lagval: Final[_FuncVal[L["lagval"]]] = ...
83-
lagval2d: Final[_FuncVal2D[L["lagval2d"]]] = ...
84-
lagval3d: Final[_FuncVal3D[L["lagval3d"]]] = ...
85-
lagvalfromroots: Final[_FuncValFromRoots[L["lagvalfromroots"]]] = ...
86-
laggrid2d: Final[_FuncVal2D[L["laggrid2d"]]] = ...
87-
laggrid3d: Final[_FuncVal3D[L["laggrid3d"]]] = ...
88-
lagvander: Final[_FuncVander[L["lagvander"]]] = ...
89-
lagvander2d: Final[_FuncVander2D[L["lagvander2d"]]] = ...
90-
lagvander3d: Final[_FuncVander3D[L["lagvander3d"]]] = ...
91-
lagfit: Final[_FuncFit[L["lagfit"]]] = ...
92-
lagcompanion: Final[_FuncCompanion[L["lagcompanion"]]] = ...
93-
lagroots: Final[_FuncRoots[L["lagroots"]]] = ...
94-
laggauss: Final[_FuncGauss[L["laggauss"]]] = ...
95-
lagweight: Final[_FuncWeight[L["lagweight"]]] = ...
96-
9777
class Laguerre(ABCPolyBase):
9878
domain: Array_1d[np.float64] = ... # pyright: ignore[reportIncompatibleMethodOverride]
9979
window: Array_1d[np.float64] = ... # pyright: ignore[reportIncompatibleMethodOverride]

tool/.mypyignore-todo

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -111,30 +111,3 @@ numpy.polynomial.hermite_e.hermevander2d
111111
numpy.polynomial.hermite_e.hermevander3d
112112
numpy.polynomial.hermite_e.hermeweight
113113
numpy.polynomial.hermite_e.poly2herme
114-
115-
numpy.polynomial.laguerre.lag2poly
116-
numpy.polynomial.laguerre.lagadd
117-
numpy.polynomial.laguerre.lagcompanion
118-
numpy.polynomial.laguerre.lagder
119-
numpy.polynomial.laguerre.lagdiv
120-
numpy.polynomial.laguerre.lagfit
121-
numpy.polynomial.laguerre.lagfromroots
122-
numpy.polynomial.laguerre.laggauss
123-
numpy.polynomial.laguerre.laggrid2d
124-
numpy.polynomial.laguerre.laggrid3d
125-
numpy.polynomial.laguerre.lagint
126-
numpy.polynomial.laguerre.lagline
127-
numpy.polynomial.laguerre.lagmul
128-
numpy.polynomial.laguerre.lagmulx
129-
numpy.polynomial.laguerre.lagpow
130-
numpy.polynomial.laguerre.lagroots
131-
numpy.polynomial.laguerre.lagsub
132-
numpy.polynomial.laguerre.lagval
133-
numpy.polynomial.laguerre.lagval2d
134-
numpy.polynomial.laguerre.lagval3d
135-
numpy.polynomial.laguerre.lagvalfromroots
136-
numpy.polynomial.laguerre.lagvander
137-
numpy.polynomial.laguerre.lagvander2d
138-
numpy.polynomial.laguerre.lagvander3d
139-
numpy.polynomial.laguerre.lagweight
140-
numpy.polynomial.laguerre.poly2lag

0 commit comments

Comments
 (0)