mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Update ruff to 0.13.1 (#163744)
Update ruff to 0.13.1 so that we can remove `UP038` from `pyproject.toml` because it has been removed from supported rules of ruff. There are some fixes, the most notable one is [(PYI059)](https://docs.astral.sh/ruff/rules/generic-not-last-base-class/#generic-not-last-base-class-pyi059) ``` Checks for classes inheriting from typing.Generic[] where Generic[] is not the last base class in the bases tuple. ``` A BC-breaking change is introduced to change the typing of `OrderedSet .storage` Pull Request resolved: https://github.com/pytorch/pytorch/pull/163744 Approved by: https://github.com/Skylion007, https://github.com/jingsh
This commit is contained in:
committed by
PyTorch MergeBot
parent
6a2bd1f4ee
commit
7441a1b9b1
@ -38,7 +38,7 @@ def unroll(num_unrolls, IndexType, InType, OutType):
|
||||
code = []
|
||||
|
||||
if num_unrolls == 1:
|
||||
code.append(f" // tail loop")
|
||||
code.append(" // tail loop")
|
||||
code.append(" if (j < end_offset) {")
|
||||
else:
|
||||
code.append(f" // unrolling {num_unrolls} times")
|
||||
|
Reference in New Issue
Block a user