diff --git a/pyproject.toml b/pyproject.toml index 978d7d14d71..8fad0c87bda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,6 @@ ignore = [ # these ignores are from RUFF perf; please fix! "PERF203", "PERF4", "PYI001", # these ignores are from PYI; please fix! - "PYI018", "PYI019", "PYI024", "PYI034", diff --git a/torchgen/api/types/types.py b/torchgen/api/types/types.py index 693623f973c..f845c6a90a2 100644 --- a/torchgen/api/types/types.py +++ b/torchgen/api/types/types.py @@ -13,7 +13,7 @@ Add new types to `types.py` if these types are ATen/c10 related. Add new types to `types_base.py` if they are basic and not attached to ATen/c10. """ from dataclasses import dataclass -from typing import Dict, TypeVar +from typing import Dict from torchgen.model import BaseTy, ScalarType @@ -31,7 +31,6 @@ from .types_base import ( shortT, ) -_T = TypeVar("_T") TENSOR_LIST_LIKE_CTYPES = [ "at::TensorList",