Y
Hacker News
new
|
ask
|
show
|
jobs
by
bobbiechen
259 days ago
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.
1 comments
detaro
259 days ago
__index__ is not what you think it is
link
bobbiechen
259 days ago
Oops, thanks for the correction. That's on me for drive-by commenting.
link