Skip to content

Replace all torch.jit.annotations with typing annotations #3172

@datumbox

Description

@datumbox

🚀 Feature

The use of torch.jit.annotations was necessary to be compatible with Python 2, nevertheless now we only support Python 3. Thus we should replace all torch.jit.annotations with typing annotations.

Examples:

from torch.jit.annotations import List, Tuple

from torch.jit.annotations import List, Tuple

There are more cases across the code-base. We should replace as many as possible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions