[Fix] minor typo in default argument for argpartition's "axis" parameter (#1125)

According to the document, argpartition's axis parameter can be None, but due to a previous typo it can't really accepts a None value.
This commit is contained in:
Jacket 2024-05-15 17:25:25 -05:00 committed by GitHub
parent 358e1fd6ab
commit c417e42116
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2527,7 +2527,7 @@ void init_ops(nb::module_& m) {
},
nb::arg(),
"kth"_a,
"axis"_a = -1,
"axis"_a.none() = -1,
nb::kw_only(),
"stream"_a = nb::none(),
nb::sig(