Skip to content

Commit bab5ea5

Browse files
committed
Fix type annotation for mpoly.names
1 parent d2e5d84 commit bab5ea5

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/flint/flint_base/flint_base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class flint_mpoly_context(flint_elem, Generic[Tmpoly, Telem, Telem_coerce]):
173173
def from_dict(self, d: Mapping[tuple[int, ...], Telem_coerce], /) -> Tmpoly: ...
174174
def constant(self, z: Telem_coerce, /) -> Tmpoly: ...
175175
def name(self, i: int, /) -> str: ...
176-
def names(self) -> tuple[str]: ...
176+
def names(self) -> tuple[str, ...]: ...
177177
def gens(self) -> tuple[Tmpoly, ...]: ...
178178
def variable_to_index(self, var: str, /) -> int: ...
179179
def term(

src/flint/types/fmpq_mpoly.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class fmpq_mpoly_ctx(flint_mpoly_context[fmpq_mpoly, fmpq, ifmpq]):
2424
def from_dict(self, d: Mapping[tuple[int, ...], ifmpq], /) -> fmpq_mpoly: ...
2525
def constant(self, q: ifmpq, /) -> fmpq_mpoly: ...
2626
def name(self, i: int, /) -> str: ...
27-
def names(self) -> tuple[str]: ...
27+
def names(self) -> tuple[str, ...]: ...
2828
def gens(self) -> tuple[fmpq_mpoly, ...]: ...
2929
def variable_to_index(self, var: str, /) -> int: ...
3030
def term(

src/flint/types/fmpz_mod_mpoly.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class fmpz_mod_mpoly_ctx(flint_mod_mpoly_context[fmpz_mod_mpoly, fmpz_mod, ifmpz
3636
def constant(self, z: ifmpz_mod) -> fmpz_mod_mpoly: ...
3737

3838
def name(self, i: int, /) -> str: ...
39-
def names(self) -> tuple[str]: ...
39+
def names(self) -> tuple[str, ...]: ...
4040
def gens(self) -> tuple[fmpz_mod_mpoly, ...]: ...
4141
def variable_to_index(self, var: str, /) -> int: ...
4242
def term(

src/flint/types/fmpz_mpoly.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class fmpz_mpoly_ctx(flint_mpoly_context[fmpz_mpoly, fmpz, ifmpz]):
2222
def from_dict(self, d: Mapping[tuple[int, ...], ifmpz], /) -> fmpz_mpoly: ...
2323
def constant(self, z: ifmpz, /) -> fmpz_mpoly: ...
2424
def name(self, i: int, /) -> str: ...
25-
def names(self) -> tuple[str]: ...
25+
def names(self) -> tuple[str, ...]: ...
2626
def gens(self) -> tuple[fmpz_mpoly, ...]: ...
2727
def variable_to_index(self, var: str, /) -> int: ...
2828
def term(

src/flint/types/nmod_mpoly.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class nmod_mpoly_ctx(flint_mod_mpoly_context[nmod_mpoly, nmod, inmod]):
3737
def constant(self, z: inmod) -> nmod_mpoly: ...
3838

3939
def name(self, i: int, /) -> str: ...
40-
def names(self) -> tuple[str]: ...
40+
def names(self) -> tuple[str, ...]: ...
4141
def gens(self) -> tuple[nmod_mpoly, ...]: ...
4242
def variable_to_index(self, var: str, /) -> int: ...
4343
def term(

src/flint/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def gen(self, i: int, /) -> _Tmpoly_p: ...
243243
def from_dict(self, d: Mapping[tuple[int, ...], _Tscalar_contra | int], /) -> _Tmpoly_p: ...
244244
def constant(self, z: _Tscalar_contra | int, /) -> _Tmpoly_p: ...
245245
def name(self, i: int, /) -> str: ...
246-
def names(self) -> tuple[str]: ...
246+
def names(self) -> tuple[str, ...]: ...
247247
def gens(self) -> tuple[_Tmpoly_p, ...]: ...
248248
def variable_to_index(self, var: str, /) -> int: ...
249249
def term(

0 commit comments

Comments
 (0)