Skip to content

Commit f1d7932

Browse files
committed
fix: add missing type check for umap_compute_weights()
1 parent ad0182a commit f1d7932

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
@@ -687,7 +687,7 @@ PyObject *igraphmodule_umap_compute_weights(
687687
PyObject *result_o;
688688
igraphmodule_GraphObject * graph;
689689

690-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO", kwlist, &graph_o, &dist_o))
690+
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!O", kwlist, igraphmodule_GraphType, &graph_o, &dist_o))
691691
return NULL;
692692

693693
/* Initialize distances */

0 commit comments

Comments
 (0)