From 7e011a7d695e31ef3d1ef5abf1b1adc9a416d9ac Mon Sep 17 00:00:00 2001 From: Yutao Yuan Date: Mon, 7 Aug 2023 23:51:30 +0800 Subject: [PATCH] force __getmetaclass__ to be a METH_NOARGS method --- src/sage/structure/element.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sage/structure/element.pyx b/src/sage/structure/element.pyx index 172fc8b7759..810fa6efc79 100644 --- a/src/sage/structure/element.pyx +++ b/src/sage/structure/element.pyx @@ -379,6 +379,7 @@ cdef class Element(SageObject): .. automethod:: __mod__ """ @cython.binding(False) + @cython.always_allow_keywords(False) def __getmetaclass__(_): from sage.misc.inherit_comparison import InheritComparisonMetaclass return InheritComparisonMetaclass