From 0ff30e3a097456e7a0b4ebb3bbbf673593b15058 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 26 Jun 2024 13:59:02 -0700 Subject: [PATCH] src/sage/rings/number_field/number_field_element.pyx (is_NumberFieldElement): Fix deprecation message --- src/sage/rings/number_field/number_field_element.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/rings/number_field/number_field_element.pyx b/src/sage/rings/number_field/number_field_element.pyx index 8a3e006ace6..7e57bd7fc5f 100644 --- a/src/sage/rings/number_field/number_field_element.pyx +++ b/src/sage/rings/number_field/number_field_element.pyx @@ -104,7 +104,7 @@ def is_NumberFieldElement(x): sage: is_NumberFieldElement(2) doctest:warning... DeprecationWarning: is_NumberFieldElement is deprecated; - use isinstance(..., sage.structure.element.NumberFieldElement) instead + use isinstance(..., sage.rings.number_field.number_field_element_base.NumberFieldElement_base) instead See https://github.com/sagemath/sage/issues/34931 for details. False sage: x = polygen(ZZ, 'x') @@ -115,7 +115,7 @@ def is_NumberFieldElement(x): from sage.misc.superseded import deprecation deprecation(34931, 'is_NumberFieldElement is deprecated; ' - 'use isinstance(..., sage.structure.element.NumberFieldElement) instead') + 'use isinstance(..., sage.rings.number_field.number_field_element_base.NumberFieldElement_base) instead') return isinstance(x, NumberFieldElement)