Skip to content

Commit dc1f8e1

Browse files
committed
chore: typing improvements
1 parent 615179c commit dc1f8e1

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/codegen/functions.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,3 @@ igraph_layout_star:
7878
igraph_maximum_bipartite_matching:
7979
# .Machine$double.eps as default value for 'eps' argument
8080
IGNORE: PythonCTypesTypedWrapper
81-
82-
igraph_erdos_renyi_game:
83-
# Decided not to generate code for it because we have separate functions for gnm and gnp
84-
IGNORE: PythonCTypes, PythonCTypesTypedWrapper

src/igraph_ctypes/_internal/conversion.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110
"edgelike_to_igraph_int_t",
111111
"edge_capacities_to_igraph_vector_t",
112112
"edge_capacities_to_igraph_vector_t_view",
113-
"edge_colors_to_igraph_vector_t",
114-
"edge_colors_to_igraph_vector_t_view",
113+
"edge_colors_to_igraph_vector_int_t",
114+
"edge_colors_to_igraph_vector_int_t_view",
115115
"edge_lengths_to_igraph_vector_t",
116116
"edge_lengths_to_igraph_vector_t_view",
117117
"edge_selector_to_igraph_es_t",
@@ -287,12 +287,14 @@ def edge_weights_to_igraph_vector_t_view(
287287
edge_capacities_to_igraph_vector_t_view = edge_weights_to_igraph_vector_t_view
288288

289289

290-
def edge_colors_to_igraph_vector_t(colors: Iterable[int], graph: Graph) -> _VectorInt:
290+
def edge_colors_to_igraph_vector_int_t(
291+
colors: Iterable[int], graph: Graph
292+
) -> _VectorInt:
291293
"""Converts a Python iterable of integers to a vector of edge colors."""
292294
return iterable_to_igraph_vector_int_t(colors)
293295

294296

295-
def edge_colors_to_igraph_vector_t_view(
297+
def edge_colors_to_igraph_vector_int_t_view(
296298
colors: Iterable[int], graph: Graph
297299
) -> _VectorInt:
298300
"""Converts a Python iterable of integers to a vector of edge colors,

0 commit comments

Comments
 (0)