Open
Description
🐛 Describe the bug
https://peps.python.org/pep-0563/ which introduced from __future__ import annotations
has been superseded by https://peps.python.org/pep-0649/ , which was accepted last year. Among other things, the new PEP deprecates the old one, which means we should NOT use the early adoption future pragma in our codebase.
At time of writing, there are 150 occurrences of this pragma in the PyTorch codebase.
cc @malfet @xuzhao9 @gramster @Skylion007
Versions
main