Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bobbiechen
5 months ago
|
parent
|
context
|
favorite
| on:
Python developers are embracing type hints
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.
detaro
5 months ago
[–]
__index__ is not what you think it is
bobbiechen
5 months ago
|
parent
[–]
Oops, thanks for the correction. That's on me for drive-by commenting.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Mind you, I haven't used it before, but it feels very similar to the abstract Mapping types.