Hacker News new | ask | show | jobs
by FreakLegion 938 days ago
It's worked for many years, but you won't often see it used outside of class definitions because all of the other tools struggle with it (Pylint, Flake8, Pylance, etc. spit out some variation of an undefined variable error).
1 comments

I don't think it has worked for years. I had used that same exact __annotations__ and my recollection was that recursive types still did not work.
It's worked for years. I've been using it the whole time.