mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
f02e3947f6
commit
b8194268a6
@ -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)
|
||||
|
Reference in New Issue
Block a user