Skip to content

Commit

Permalink
fix number
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Nov 8, 2024
1 parent f6af14f commit a8cbe30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/sage/rings/polynomial/multi_polynomial.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1311,12 +1311,12 @@ cdef class MPolynomial(CommutativePolynomial):
sage: x.is_generator()
doctest:warning...:
DeprecationWarning: is_generator is deprecated. Please use is_gen instead.
See https://github.com/sagemath/sage/issues/38888 for details.
See https://github.com/sagemath/sage/issues/38942 for details.
True
"""
return self in self.parent().gens()

is_generator = deprecated_function_alias(38888, is_gen)
is_generator = deprecated_function_alias(38942, is_gen)

def map_coefficients(self, f, new_base_ring=None):
r"""
Expand Down
4 changes: 2 additions & 2 deletions src/sage/rings/polynomial/multi_polynomial_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ def is_gen(self) -> bool:
sage: x.is_generator()
doctest:warning...:
DeprecationWarning: is_generator is deprecated. Please use is_gen instead.
See https://github.com/sagemath/sage/issues/38888 for details.
See https://github.com/sagemath/sage/issues/38942 for details.
True
"""
elt = self.element()
Expand All @@ -1380,7 +1380,7 @@ def is_gen(self) -> bool:
return e.nonzero_values() == [1] and c.is_one()
return False

is_generator = deprecated_function_alias(38888, is_gen)
is_generator = deprecated_function_alias(38942, is_gen)

def is_monomial(self):
"""
Expand Down

0 comments on commit a8cbe30

Please sign in to comment.