Skip to content

Commit

Permalink
categories/morphism.pyx: remove some noexcepts
Browse files Browse the repository at this point in the history
For Python return types.
  • Loading branch information
gmou3 committed Sep 4, 2024
1 parent 24698e7 commit 36316c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/categories/morphism.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 36316c0

Please sign in to comment.