Skip to content

Commit

Permalink
sagemathgh-38613: categories/morphism.pyx: remove some noexcepts
Browse files Browse the repository at this point in the history
    
Remove ignored `noexcept`s for functions with `Python` return types.

```
[sagelib-10.5.beta3] [spkg-install]     warning:
sage/categories/morphism.pyx:801:26: noexcept clause is ignored for
function returning Python object
[sagelib-10.5.beta3] [spkg-install]     warning:
sage/categories/morphism.pyx:826:22: noexcept clause is ignored for
function returning Python object
```
    
URL: sagemath#38613
Reported by: gmou3
Reviewer(s): Kwankyu Lee
  • Loading branch information
Release Manager committed Sep 12, 2024
2 parents 80858da + 36316c0 commit f824f62
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 f824f62

Please sign in to comment.