Skip to content

Commit 7ce2f90

Browse files
committed
fix: add missing type check for umap_compute_weights()
1 parent d452ad6 commit 7ce2f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_igraph/igraphmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ PyObject *igraphmodule_umap_compute_weights(
683683
PyObject *result_o;
684684
igraphmodule_GraphObject * graph;
685685

686-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO", kwlist, &graph_o, &dist_o))
686+
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!O", kwlist, igraphmodule_GraphType, &graph_o, &dist_o))
687687
return NULL;
688688

689689
/* Initialize distances */

0 commit comments

Comments
 (0)