| ▲ | romperstomper 4 hours ago | |
All modern AI tools tend to put `from __future__ import annotations` line into Python code which isn't required by recent Python versions. I guess this is because they all are trained on an intermediate code bases when this was required some times (even at that time the real usage was quite rare). And now this line is parroting everywhere like a junk DNA :) | ||
| ▲ | sevensor 2 hours ago | parent [-] | |
I am not an AI and I missed the memo on this. I put that line in whenever I need to use a forward-declared type annotation. Last I recall reading about it, there were some deep issues that meant it had to stay in __future__ indefinitely. Is there a PEP / release note about it? | ||