Skip to content

Commit

Permalink
gh-37165: use Parent in quadratic number fields
Browse files Browse the repository at this point in the history
    
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
  • Loading branch information
Release Manager committed Feb 1, 2024
2 parents f40ab15 + c703c62 commit bb09b47
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ from sage.libs.ntl.ntl_ZZ cimport ntl_ZZ
from sage.libs.ntl.ntl_ZZX cimport ntl_ZZX
from sage.libs.mpfi cimport *


from sage.structure.parent cimport Parent
from sage.structure.parent_base cimport ParentWithBase
from sage.structure.element cimport Element
from sage.structure.richcmp cimport rich_to_bool_sgn

Expand Down Expand Up @@ -611,7 +609,7 @@ cdef class NumberFieldElement_quadratic(NumberFieldElement_absolute):

mpz_clear(tmp_mpz)

x._parent = <ParentWithBase>new_parent
x._parent = <Parent>new_parent
x._fld_numerator, x._fld_denominator = new_parent.polynomial_ntl()
x._denominator = elt_den
cdef ZZX_c result
Expand Down

0 comments on commit bb09b47

Please sign in to comment.