From 12158a3873e63626ed9cb8fbed1275ed5f950014 Mon Sep 17 00:00:00 2001 From: Jackson Walters Date: Wed, 31 Jul 2024 17:53:58 -0400 Subject: [PATCH] change polynomial ring notation to remove lint error --- src/sage/combinat/symmetric_group_algebra.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sage/combinat/symmetric_group_algebra.py b/src/sage/combinat/symmetric_group_algebra.py index e0de9b8fa4f..dc2bad783fe 100644 --- a/src/sage/combinat/symmetric_group_algebra.py +++ b/src/sage/combinat/symmetric_group_algebra.py @@ -2103,7 +2103,8 @@ def all_roots_field(): required_square_roots = flatten([[QQ(q).numerator(),QQ(q).denominator()] if q in QQ else q for q in required_square_roots]) K = self.base_ring() for n in set(required_square_roots): - R. = PolynomialRing(K) + R = PolynomialRing(K, 'x') + x = R.gen() if (x**2 - n).is_irreducible(): gen_name = "sqrt"+str(n).replace("/","over") K = K.extension(sqrt(n).minpoly(),names=gen_name)