8000 Deprecate and remove usage of from __future__ import annotations in codebase · Issue #117449 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content
Deprecate and remove usage of from __future__ import annotations in codebase #117449
Open
@ezyang

Description

@ezyang

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: typingRelated to mypy type annotationstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0