Skip to content

Commit 6826c38

Browse files
Add type annotations for new methods
1 parent 219cd7f commit 6826c38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flint/types/nmod_poly.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class nmod_poly(flint_poly[nmod]):
2727
def is_constant(self) -> bool: ...
2828
def is_gen(self) -> bool: ...
2929
def reverse(self, degree: int | None = None) -> nmod_poly: ...
30+
def truncate(self, n: int) -> nmod_poly: ...
3031
def leading_coefficient(self) -> nmod: ...
3132
def inverse_series_trunc(self, n: int) -> nmod_poly: ...
3233
def compose(self, other: inmod_poly) -> nmod_poly: ...
@@ -53,6 +54,8 @@ class nmod_poly(flint_poly[nmod]):
5354
def __rmod__(self, other: inmod_poly) -> nmod_poly: ...
5455
def __divmod__(self, other: inmod_poly) -> tuple[nmod_poly, nmod_poly]: ...
5556
def __rdivmod__(self, other: inmod_poly) -> tuple[nmod_poly, nmod_poly]: ...
57+
def left_shift(self, n: int) -> nmod_poly: ...
58+
def right_shift(self, n: int) -> nmod_poly: ...
5659
def __pow__(self, other: int, mod: inmod_poly | None = None) -> nmod_poly: ...
5760
def pow_mod(
5861
self, e: int, modulus: inmod_poly, mod_rev_inv: inmod_poly | None = None

0 commit comments

Comments
 (0)