Skip to content

Commit 98a5484

Browse files
author
Matthias Koeppe
committed
src/sage/rings/finite_rings/hom_finite_field.pyx: Import ABC as FiniteField_base
1 parent 6ce26bc commit 98a5484

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/rings/finite_rings/hom_finite_field.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ from sage.rings.integer cimport Integer
106106
from sage.categories.homset import Hom
107107
from sage.structure.element cimport Element
108108

109-
from sage.rings.finite_rings.finite_field_base import FiniteField
109+
from sage.rings.finite_rings.finite_field_base import FiniteField as FiniteField_base
110110
from sage.rings.morphism cimport RingHomomorphism, RingHomomorphism_im_gens, FrobeniusEndomorphism_generic
111111
from sage.rings.finite_rings.finite_field_constructor import FiniteField
112112

@@ -227,9 +227,9 @@ cdef class FiniteFieldHomomorphism_generic(RingHomomorphism_im_gens):
227227
"""
228228
domain = parent.domain()
229229
codomain = parent.codomain()
230-
if not isinstance(domain, FiniteField):
230+
if not isinstance(domain, FiniteField_base):
231231
raise TypeError("The domain is not a finite field or does not provide the required interface for finite fields")
232-
if not isinstance(codomain, FiniteField):
232+
if not isinstance(codomain, FiniteField_base):
233233
raise TypeError("The codomain is not a finite field or does not provide the required interface for finite fields")
234234
if domain.characteristic() != codomain.characteristic() or codomain.degree() % domain.degree() != 0:
235235
raise ValueError("No embedding of %s into %s" % (domain, codomain))
@@ -522,7 +522,7 @@ cdef class FrobeniusEndomorphism_finite_field(FrobeniusEndomorphism_generic):
522522
...
523523
TypeError: The domain is not a finite field or does not provide the required interface for finite fields
524524
"""
525-
if not isinstance(domain, FiniteField):
525+
if not isinstance(domain, FiniteField_base):
526526
raise TypeError("The domain is not a finite field or does not provide the required interface for finite fields")
527527
try:
528528
n = Integer(n)

0 commit comments

Comments
 (0)