Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/rings/number_field/number_field_element.pyx: Update doctest …
Browse files Browse the repository at this point in the history
…with deprecation warning
  • Loading branch information
Matthias Koeppe committed Jan 24, 2023
1 parent 1cc09cc commit 4dfefbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sage/rings/number_field/number_field_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def is_NumberFieldElement(x):
sage: from sage.rings.number_field.number_field_element import is_NumberFieldElement
sage: is_NumberFieldElement(2)
doctest:warning...
DeprecationWarning: is_NumberFieldElement is deprecated;
use isinstance(..., sage.structure.element.NumberFieldElement) instead
See https://trac.sagemath.org/34931 for details.
False
sage: k.<a> = NumberField(x^7 + 17*x + 1)
sage: is_NumberFieldElement(a+1)
Expand Down

0 comments on commit 4dfefbf

Please sign in to comment.