Skip to content

Commit

Permalink
sagemathgh-39429: Declare del_edge as cpdef
Browse files Browse the repository at this point in the history
    
Consistent with its parent class; a build warning gets resolved:
```
warning: /home/runner/work/sage/sage/src/sage/graphs/base/static_sparse_
backend.pyx:677:4: Overriding cdef method with def method.
```
    
URL: sagemath#39429
Reported by: gmou3
Reviewer(s): David Coudert
  • Loading branch information
Release Manager committed Feb 3, 2025
2 parents 5d36d8f + 5cf5a34 commit ffa58f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/graphs/base/static_sparse_backend.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ cdef class StaticSparseBackend(CGraphBackend):
"""
raise ValueError("graph is immutable; please change a copy instead (use function copy())")

def del_edge(self, object u, object v, object l, bint directed):
cpdef del_edge(self, object u, object v, object l, bint directed):
r"""
Delete an edge of the graph. No way.
Expand Down

0 comments on commit ffa58f4

Please sign in to comment.