@@ -58,25 +58,22 @@ class flint_poly(flint_elem, Generic[Telem]):
58
58
def length (self ) -> int : ...
59
59
def degree (self ) -> int : ...
60
60
def coeffs (self ) -> list [Telem ]: ...
61
- @overload
62
61
def __call__ (self , other : Telem | int , / ) -> Telem : ...
63
- @overload
64
- def __call__ (self , other : Self , / ) -> Self : ...
65
62
def __pos__ (self ) -> Self : ...
66
63
def __neg__ (self ) -> Self : ...
67
- def __add__ (self , other : Telem | int | Self , / ) -> Self : ...
64
+ def __add__ (self , other : Telem | int , / ) -> Self : ...
68
65
def __radd__ (self , other : Telem | int , / ) -> Self : ...
69
- def __sub__ (self , other : Telem | int | Self , / ) -> Self : ...
66
+ def __sub__ (self , other : Telem | int , / ) -> Self : ...
70
67
def __rsub__ (self , other : Telem | int , / ) -> Self : ...
71
- def __mul__ (self , other : Telem | int | Self , / ) -> Self : ...
68
+ def __mul__ (self , other : Telem | int , / ) -> Self : ...
72
69
def __rmul__ (self , other : Telem | int , / ) -> Self : ...
73
- def __truediv__ (self , other : Telem | int | Self , / ) -> Self : ...
70
+ def __truediv__ (self , other : Telem | int , / ) -> Self : ...
74
71
def __rtruediv__ (self , other : Telem | int , / ) -> Self : ...
75
- def __floordiv__ (self , other : Telem | int | Self , / ) -> Self : ...
72
+ def __floordiv__ (self , other : Telem | int , / ) -> Self : ...
76
73
def __rfloordiv__ (self , other : Telem | int , / ) -> Self : ...
77
- def __mod__ (self , other : Telem | int | Self , / ) -> Self : ...
74
+ def __mod__ (self , other : Telem | int , / ) -> Self : ...
78
75
def __rmod__ (self , other : Telem | int , / ) -> Self : ...
79
- def __divmod__ (self , other : Telem | int | Self , / ) -> tuple [Self , Self ]: ...
76
+ def __divmod__ (self , other : Telem | int , / ) -> tuple [Self , Self ]: ...
80
77
def __rdivmod__ (self , other : Telem | int , / ) -> tuple [Self , Self ]: ...
81
78
def __pow__ (self , other : int , / ) -> Self : ...
82
79
def is_zero (self ) -> bool : ...
@@ -130,41 +127,38 @@ class flint_mpoly(flint_elem, Generic[Tctx, Telem, Telem_coerce]):
130
127
def coeffs (self ) -> list [Telem ]: ...
131
128
def __pos__ (self ) -> Self : ...
132
129
def __neg__ (self ) -> Self : ...
133
- def __add__ (self , other : Self | Telem | Telem_coerce | int ) -> Self : ...
130
+ def __add__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
134
131
def __radd__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
135
- def __sub__ (self , other : Self | Telem | Telem_coerce | int ) -> Self : ...
132
+ def __sub__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
136
133
def __rsub__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
137
- def __mul__ (self , other : Self | Telem | Telem_coerce | int ) -> Self : ...
134
+ def __mul__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
138
135
def __rmul__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
139
- def __truediv__ (self , other : Self | Telem | Telem_coerce | int ) -> Self : ...
136
+ def __truediv__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
140
137
def __rtruediv__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
141
- def __floordiv__ (self , other : Self | Telem | Telem_coerce | int ) -> Self : ...
138
+ def __floordiv__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
142
139
def __rfloordiv__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
143
- def __mod__ (self , other : Self | Telem | Telem_coerce | int ) -> Self : ...
140
+ def __mod__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
144
141
def __rmod__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
145
142
def __divmod__ (
146
- self , other : Self | Telem | Telem_coerce | int
143
+ self , other : Telem | Telem_coerce | int
147
144
) -> tuple [Self , Self ]: ...
148
145
def __rdivmod__ (self , other : Telem | Telem_coerce | int ) -> tuple [Self , Self ]: ...
149
146
def __pow__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
150
147
def __rpow__ (self , other : Telem | Telem_coerce | int ) -> Self : ...
151
148
def iadd (self , other : Telem | Telem_coerce | int ) -> None : ...
152
149
def isub (self , other : Telem | Telem_coerce | int ) -> None : ...
153
150
def imul (self , other : Telem | Telem_coerce | int ) -> None : ...
154
- def gcd (self , other : Self ) -> Self : ...
155
151
def term_content (self ) -> Self : ...
156
152
def factor (self ) -> tuple [Telem , Sequence [tuple [Self , int ]]]: ...
157
153
def factor_squarefree (self ) -> tuple [Telem , Sequence [tuple [Self , int ]]]: ...
158
154
def sqrt (self ) -> Self : ...
159
- def resultant (self , other : Self , var : _str | int ) -> Self : ...
160
155
def discriminant (self , var : _str | int ) -> Self : ...
161
156
def deflation_index (self ) -> tuple [list [int ], list [int ]]: ...
162
157
def deflation (self ) -> tuple [Self , list [int ]]: ...
163
158
def deflation_monom (self ) -> tuple [Self , list [int ], Self ]: ...
164
159
def inflate (self , N : list [int ]) -> Self : ...
165
160
def deflate (self , N : list [int ]) -> Self : ...
166
161
def subs (self , mapping : dict [_str | int , Telem | Telem_coerce | int ]) -> Self : ...
167
- def compose (self , * args : Self , ctx : Tctx | None = None ) -> Self : ...
168
162
def __call__ (self , * args : Telem | Telem_coerce ) -> Telem : ...
169
163
def derivative (self , var : _str | int ) -> Self : ...
170
164
def unused_gens (self ) -> tuple [_str , ...]: ...
@@ -193,14 +187,14 @@ class flint_mpoly_context(flint_elem, Generic[Tmpoly, Telem, Telem_coerce]):
193
187
@classmethod
194
188
def from_context (
195
189
cls ,
196
- ctx : Sctx ,
190
+ ctx : flint_mpoly_context ,
197
191
names : str | Iterable [str | tuple [str , int ]] | tuple [str , int ] | None = None ,
198
192
ordering : Ordering | str = Ordering .lex ,
199
- ) -> Sctx : ...
193
+ ) -> Self : ...
200
194
201
195
class flint_mod_mpoly_context (flint_mpoly_context [Tmpoly , Telem , Telem_coerce ]):
202
196
@abstractmethod
203
- def modulus (self ) -> int : ...
197
+ def modulus (self ): ...
204
198
205
199
class flint_series (flint_elem , Generic [Telem ]):
206
200
"""Base class for power series."""
0 commit comments