On Mon, Apr 19, 2021 at 12:24 PM bas van beek <[email protected]> wrote:
> After a taking a closer look at the `np.choose` docs I think we should > change `*choices: npt.ArrayLike` into `choices: Sequence[npt.ArrayLike]`.* > > > > *This would resolve the issue, but it’d also mean that directly passing an > array will be prohibited (as far as type checkers are concerned).* > > *The docs do mention that the outermost container should be a list or > tuple anyway, so I’m not convinced that this new typing restriction would > be a huge loss.* > Why not allow both? -- Robert Kern
_______________________________________________ NumPy-Discussion mailing list [email protected] https://mail.python.org/mailman/listinfo/numpy-discussion
