A set of type stubs for popular Python packages. These are works in progress from the Microsoft Python team and others, with the intent that they are contributed to typeshed or to the associated packages once sufficiently complete.
MIT License
251
stars
99
forks
source link
stub for sklearn.datasets.load_iris is missing a return type option #345
This might not be the only case of this in the codebase, but unfortunately I just have enough time to write this ticket. Normally I like to come with a bit more information, sorry about that.
The
Returns
section of the docstring forsklearn.datasets.load_iris()
has two options:sklearn.utils.Bunch
, ifreturn_X_y
isFalse
tuple[ndarray, ndarray]
ifreturn_X_y
isTrue
The type stub for the function is
but I believe it should be:
or at least:
which might be all we can get with parsing.
This might not be the only case of this in the codebase, but unfortunately I just have enough time to write this ticket. Normally I like to come with a bit more information, sorry about that.