Skip to content

Commit 69b39f7

Browse files
author
Release Manager
committed
gh-38286: `is_NumberFieldElement`: Fix deprecation message <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes #12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes #12345". --> The current message is referring to a class that does not exist. - Part of #32414 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #38286 Reported by: Matthias Köppe Reviewer(s): Travis Scrimshaw
2 parents 9363f84 + 0ff30e3 commit 69b39f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/rings/number_field/number_field_element.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def is_NumberFieldElement(x):
104104
sage: is_NumberFieldElement(2)
105105
doctest:warning...
106106
DeprecationWarning: is_NumberFieldElement is deprecated;
107-
use isinstance(..., sage.structure.element.NumberFieldElement) instead
107+
use isinstance(..., sage.rings.number_field.number_field_element_base.NumberFieldElement_base) instead
108108
See https://github.com/sagemath/sage/issues/34931 for details.
109109
False
110110
sage: x = polygen(ZZ, 'x')
@@ -115,7 +115,7 @@ def is_NumberFieldElement(x):
115115
from sage.misc.superseded import deprecation
116116
deprecation(34931,
117117
'is_NumberFieldElement is deprecated; '
118-
'use isinstance(..., sage.structure.element.NumberFieldElement) instead')
118+
'use isinstance(..., sage.rings.number_field.number_field_element_base.NumberFieldElement_base) instead')
119119
return isinstance(x, NumberFieldElement)
120120

121121

0 commit comments

Comments
 (0)