From 8d97f9d08e2f7ddfb52b394d50162e7c2f86952c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Tue, 15 Feb 2022 10:31:58 +0100 Subject: [PATCH] another fix --- src/sage/rings/fraction_field.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sage/rings/fraction_field.py b/src/sage/rings/fraction_field.py index 4872299ef08..e0b39181b5a 100644 --- a/src/sage/rings/fraction_field.py +++ b/src/sage/rings/fraction_field.py @@ -342,7 +342,8 @@ def wrapper(x): # special treatment for LaurentPolynomialRings if (isinstance(S, LaurentPolynomialRing_generic) and - self._R.has_coerce_map_from(S.base_ring())): + self._R.fraction_field().has_coerce_map_from(S.base_ring())): + def converter(x, y=None): if y is None: return self._element_class(self, *x._fraction_pair())