Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Feb 15, 2022
1 parent ed5f0ca commit 8d97f9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/rings/fraction_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8d97f9d

Please sign in to comment.