Skip to content

Commit 290e36f

Browse files
committed
fixed implemntation present in kwds key check
1 parent b85f026 commit 290e36f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sage/rings/finite_rings/finite_field_constructor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@
174174
# ****************************************************************************
175175

176176
from collections import defaultdict
177-
from typing import Optional
178177
from sage.structure.category_object import normalize_names, certify_names
179178
from sage.rings.polynomial.polynomial_element import Polynomial
180179
from sage.rings.integer import Integer
@@ -515,7 +514,7 @@ def __init__(self, *args, **kwds):
515514
super().__init__(*args, **kwds)
516515

517516
def create_key_and_extra_args(self, order, name=None, modulus=None, names=None,
518-
implementation: Optional[str] = None, proof=None,
517+
implementation=None, proof=None,
519518
check_prime: bool = True, check_irreducible: bool = True,
520519
prefix=None, repr=None, elem_cache=None,
521520
**kwds):
@@ -651,7 +650,7 @@ def create_key_and_extra_args(self, order, name=None, modulus=None, names=None,
651650
Finite Field in aa of size 7^2
652651
"""
653652
for key, val in kwds.items():
654-
if key not in ['structure', 'implementation', 'prec', 'embedding', 'latex_names', 'impl']:
653+
if key not in ['structure', 'prec', 'embedding', 'latex_names', 'impl']:
655654
raise TypeError("create_key_and_extra_args() got an unexpected keyword argument '%s'" % key)
656655
if not (val is None or isinstance(val, list) and all(c is None for c in val)):
657656
raise NotImplementedError("ring extension with prescribed %s is not implemented" % key)

0 commit comments

Comments
 (0)