by tyingq · 2y ago · 0 comments
Like:
somevar: dict[int, int] = {0: 0, 1: 1}
Produces "TypeError: 'type' object is not subscriptable"Hard-to-grok errors tend to appear for every language and every backwards-compatible change unless the language itself specifies the target version in the source code file itself. The only language I know is doing this is Solidity.