From 73a9d5268a3c4cc08a3151de53fb39b7d4116b43 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 30 May 2024 14:25:38 -0700 Subject: [PATCH] src/sage/structure/coerce.pyx (is_mpmath_type): Update --- src/sage/structure/coerce.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sage/structure/coerce.pyx b/src/sage/structure/coerce.pyx index 26b9ee77cd7..d69f0787632 100644 --- a/src/sage/structure/coerce.pyx +++ b/src/sage/structure/coerce.pyx @@ -468,10 +468,10 @@ cpdef bint is_numpy_type(t) noexcept: return True return False + cpdef bint is_mpmath_type(t) noexcept: r""" - Check whether the type ``t`` is a type whose name starts with either - ``mpmath.`` or ``sage.libs.mpmath.``. + Check whether the type ``t`` is a type whose name starts with ``mpmath.`` EXAMPLES:: @@ -488,7 +488,7 @@ cpdef bint is_mpmath_type(t) noexcept: True """ return isinstance(t, type) and \ - strncmp((t).tp_name, "sage.libs.mpmath.", 17) == 0 + strncmp((t).tp_name, "mpmath.", 17) == 0 cdef class CoercionModel: