You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a function (__getitem__) that accepts integers or ellipsis arguments.
I haven't found a way to specify this in a stub (pyi) file so that mypy will like it.
but what to write in place of ???.
One solution would be None-style Ellipsis, but that doesn't work currently.
(numpy ndarrays would have the same issue, but I haven't found a stub file for them.)
I would greatly appreciate any hint how this works and if there is a way this works, my feature request would be to add a hint in the documentation, too.
The text was updated successfully, but these errors were encountered:
I have a function (
__getitem__
) that accepts integers or ellipsis arguments.I haven't found a way to specify this in a stub (pyi) file so that mypy will like it.
but what to write in place of
???
.One solution would be None-style
Ellipsis
, but that doesn't work currently.(numpy ndarrays would have the same issue, but I haven't found a stub file for them.)
I would greatly appreciate any hint how this works and if there is a way this works, my feature request would be to add a hint in the documentation, too.
The text was updated successfully, but these errors were encountered: