Skip to content

Commit bb09b47

Browse files
author
Release Manager
committed
gh-37165: use Parent in quadratic number fields as another little step towards getting rid of `ParentWithBase` ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. URL: #37165 Reported by: Frédéric Chapoton Reviewer(s): Marc Mezzarobba
2 parents f40ab15 + c703c62 commit bb09b47

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sage/rings/number_field/number_field_element_quadratic.pyx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ from sage.libs.ntl.ntl_ZZ cimport ntl_ZZ
4949
from sage.libs.ntl.ntl_ZZX cimport ntl_ZZX
5050
from sage.libs.mpfi cimport *
5151

52-
5352
from sage.structure.parent cimport Parent
54-
from sage.structure.parent_base cimport ParentWithBase
5553
from sage.structure.element cimport Element
5654
from sage.structure.richcmp cimport rich_to_bool_sgn
5755

@@ -611,7 +609,7 @@ cdef class NumberFieldElement_quadratic(NumberFieldElement_absolute):
611609

612610
mpz_clear(tmp_mpz)
613611

614-
x._parent = <ParentWithBase>new_parent
612+
x._parent = <Parent>new_parent
615613
x._fld_numerator, x._fld_denominator = new_parent.polynomial_ntl()
616614
x._denominator = elt_den
617615
cdef ZZX_c result

0 commit comments

Comments
 (0)