diff --git a/src/sage/categories/morphism.pyx b/src/sage/categories/morphism.pyx index 2ed9514a469..34bcd1ca5f5 100644 --- a/src/sage/categories/morphism.pyx +++ b/src/sage/categories/morphism.pyx @@ -798,7 +798,7 @@ cdef class SetIsomorphism(SetMorphism): raise RuntimeError('inverse morphism has not been set') return self._inverse - cdef dict _extra_slots(self) noexcept: + cdef dict _extra_slots(self): """ Extend the dictionary with extra slots for this class. @@ -823,7 +823,7 @@ cdef class SetIsomorphism(SetMorphism): slots['_inverse'] = self._inverse return slots - cdef _update_slots(self, dict _slots) noexcept: + cdef _update_slots(self, dict _slots): """ Update the slots of ``self`` from the data in the dictionary.