Skip to content

Commit eaae799

Browse files
committed
force __getmetaclass__ to be a METH_NOARGS method
1 parent 5e7e1ba commit eaae799

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sage/structure/element.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ cdef class Element(SageObject):
379379
.. automethod:: __mod__
380380
"""
381381
@cython.binding(False)
382+
@cython.always_allow_keywords(False)
382383
def __getmetaclass__(_):
383384
from sage.misc.inherit_comparison import InheritComparisonMetaclass
384385
return InheritComparisonMetaclass

0 commit comments

Comments
 (0)