scipy.spatial
signature of [c]KDTree.query
does not match docs
#158
Labels
Milestone
scipy.spatial
signature of [c]KDTree.query
does not match docs
#158
According to the scipy docs query should return float, int or array of float, array of int
https://github.com/scipy/scipy/blob/main/scipy/spatial/_kdtree.py#L395
However, in scipy-stubs these are both typed as returning a tuple of two floats or tuple of arrays of floats
https://github.com/jorenham/scipy-stubs/blob/master/scipy-stubs/spatial/_ckdtree.pyi#L88
https://github.com/jorenham/scipy-stubs/blob/master/scipy-stubs/spatial/_kdtree.pyi#L73
The text was updated successfully, but these errors were encountered: