Skip to content

Commit

Permalink
force __getmetaclass__ to be a METH_NOARGS method
Browse files Browse the repository at this point in the history
  • Loading branch information
infmagic2047 committed Aug 18, 2023
1 parent 1809b48 commit 7e011a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sage/structure/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e011a7

Please sign in to comment.