1- from typing import Iterable , Mapping
2- from ..flint_base .flint_base import flint_mpoly , flint_mod_mpoly_context , Ordering
1+ from typing import Iterable , Mapping , Any
2+ from ..flint_base .flint_base import (
3+ flint_mpoly ,
4+ flint_mpoly_context ,
5+ flint_mod_mpoly_context ,
6+ Ordering ,
7+ )
38from .fmpz import fmpz
49from .fmpz_mod import fmpz_mod
510from .fmpz_mpoly import fmpz_mpoly
@@ -17,16 +22,38 @@ class fmpz_mod_mpoly_ctx(flint_mod_mpoly_context[fmpz_mod_mpoly, fmpz_mod, ifmpz
1722 names : _str | Iterable [_str | tuple [_str , int ]] | tuple [_str , int ],
1823 ordering : Ordering | _str = Ordering .lex ,
1924 * ,
20- modulus : ifmpz ,
25+ modulus : int ,
2126 ) -> fmpz_mod_mpoly_ctx :
2227 ...
2328
29+ def modulus (self ) -> fmpz : ...
30+
2431 def nvars (self ) -> int : ...
2532 def ordering (self ) -> Ordering : ...
26- def modulus (self ) -> int : ...
27- def gen (self , i : int , / ) -> fmpz_mod_mpoly : ...
28- def constant (self , z : ifmpz_mod ) -> fmpz_mod_mpoly : ...
33+
34+ def gen (self , i : int ) -> fmpz_mod_mpoly : ...
2935 def from_dict (self , d : Mapping [tuple [int , ...], ifmpz_mod ]) -> fmpz_mod_mpoly : ...
36+ def constant (self , z : ifmpz_mod ) -> fmpz_mod_mpoly : ...
37+
38+ def name (self , i : int , / ) -> str : ...
39+ def names (self ) -> tuple [str ]: ...
40+ def gens (self ) -> tuple [fmpz_mod_mpoly , ...]: ...
41+ def variable_to_index (self , var : str , / ) -> int : ...
42+ def term (
43+ self , coeff : ifmpz_mod | None = None , exp_vec : Iterable [int ] | None = None
44+ ) -> fmpz_mod_mpoly : ...
45+ def drop_gens (self , gens : Iterable [str | int ], / ) -> fmpz_mod_mpoly_ctx : ...
46+ def append_gens (self , gens : Iterable [str | int ], / ) -> fmpz_mod_mpoly_ctx : ...
47+ def infer_generator_mapping (
48+ self , ctx : flint_mpoly_context , /
49+ ) -> dict [int , int ]: ...
50+ @classmethod
51+ def from_context (
52+ cls ,
53+ ctx : flint_mpoly_context [Any , Any , Any ],
54+ names : str | Iterable [str | tuple [str , int ]] | tuple [str , int ] | None = None ,
55+ ordering : Ordering | str = Ordering .lex ,
56+ ) -> fmpz_mod_mpoly_ctx : ...
3057
3158
3259class fmpz_mod_mpoly (flint_mpoly [fmpz_mod_mpoly_ctx , fmpz_mod , ifmpz_mod ]):
0 commit comments