Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Isn't this supported by typing.SupportsIndex? https://docs.python.org/3/library/typing.html#typing.Support...

Mind you, I haven't used it before, but it feels very similar to the abstract Mapping types.



__index__ is not what you think it is


Oops, thanks for the correction. That's on me for drive-by commenting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: