|
174 | 174 | # **************************************************************************** |
175 | 175 |
|
176 | 176 | from collections import defaultdict |
177 | | -from typing import Optional |
178 | 177 | from sage.structure.category_object import normalize_names, certify_names |
179 | 178 | from sage.rings.polynomial.polynomial_element import Polynomial |
180 | 179 | from sage.rings.integer import Integer |
@@ -515,7 +514,7 @@ def __init__(self, *args, **kwds): |
515 | 514 | super().__init__(*args, **kwds) |
516 | 515 |
|
517 | 516 | 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, |
519 | 518 | check_prime: bool = True, check_irreducible: bool = True, |
520 | 519 | prefix=None, repr=None, elem_cache=None, |
521 | 520 | **kwds): |
@@ -651,7 +650,7 @@ def create_key_and_extra_args(self, order, name=None, modulus=None, names=None, |
651 | 650 | Finite Field in aa of size 7^2 |
652 | 651 | """ |
653 | 652 | 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']: |
655 | 654 | raise TypeError("create_key_and_extra_args() got an unexpected keyword argument '%s'" % key) |
656 | 655 | if not (val is None or isinstance(val, list) and all(c is None for c in val)): |
657 | 656 | raise NotImplementedError("ring extension with prescribed %s is not implemented" % key) |
|
0 commit comments