Remove unnecessary noqa suppressions (#164106)

This PR removes unused `noqa` suppressions in Python code.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164106
Approved by: https://github.com/albanD
This commit is contained in:
Yuanyuan Chen
2025-10-18 04:52:41 +00:00
committed by PyTorch MergeBot
parent f02e3947f6
commit b8194268a6
9 changed files with 9 additions and 12 deletions

View File

@ -16,7 +16,7 @@ def has_triton_package() -> bool:
@functools.cache
def get_triton_version(fallback: tuple[int, int] = (0, 0)) -> tuple[int, int]:
try:
import triton # noqa: F401
import triton
major, minor = tuple(int(v) for v in triton.__version__.split(".")[:2])
return (major, minor)