From d424bdacde1e5cf047fa5885e6b5a8d78e6d3b5b Mon Sep 17 00:00:00 2001 From: Giacomo Pope Date: Mon, 5 Aug 2024 15:18:52 +0100 Subject: [PATCH] linter fix --- src/sage/libs/ntl/ntl_ZZ_pX.pyx | 4 ++-- src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx | 3 ++- src/sage/rings/polynomial/polynomial_zmod_flint.pyx | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sage/libs/ntl/ntl_ZZ_pX.pyx b/src/sage/libs/ntl/ntl_ZZ_pX.pyx index 16b708fb0d4..00db3039b3a 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pX.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pX.pyx @@ -1478,7 +1478,7 @@ cdef class ntl_ZZ_pX(): To be precise about the order fo compostion, given ``self``, ``other`` and ``modulus`` as `f(x)`, `g(x)` and `h(x)` compute `f(g(x)) \mod h(x)`. - + INPUT: - ``other`` -- a polynomial `g(x)` @@ -1503,7 +1503,7 @@ cdef class ntl_ZZ_pX(): sig_on() # NTL requires that g is reduced other = other % modulus - + # Build the modulus type ZZ_pX_Modulus_build(mod, modulus.x) diff --git a/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx b/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx index 973395cd4db..615379dc157 100644 --- a/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx +++ b/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx @@ -430,7 +430,7 @@ cdef class Polynomial_dense_mod_n(Polynomial): To be precise about the order fo compostion, given ``self``, ``other`` and ``modulus`` as `f(x)`, `g(x)` and `h(x)` compute `f(g(x)) \mod h(x)`. - + INPUT: - ``other`` -- a polynomial `g(x)` @@ -463,6 +463,7 @@ cdef class Polynomial_dense_mod_n(Polynomial): res = elt.modular_composition(other, mod) return self.parent()(res, construct=True) + def small_roots(self, X=None, beta=1.0, epsilon=None, **kwds): r""" Let `N` be the characteristic of the base ring this polynomial diff --git a/src/sage/rings/polynomial/polynomial_zmod_flint.pyx b/src/sage/rings/polynomial/polynomial_zmod_flint.pyx index 2d8538a0ba7..e591aafc1df 100644 --- a/src/sage/rings/polynomial/polynomial_zmod_flint.pyx +++ b/src/sage/rings/polynomial/polynomial_zmod_flint.pyx @@ -996,7 +996,7 @@ cdef class Polynomial_zmod_flint(Polynomial_template): To be precise about the order fo compostion, given ``self``, ``other`` and ``modulus`` as `f(x)`, `g(x)` and `h(x)` compute `f(g(x)) \mod h(x)`. - + INPUT: - ``other`` -- a polynomial `g(x)`