[lint] Enable Ruff UP037 to drop redundant quoted annotations (#27984)

This commit is contained in:
Cheng Wan
2026-06-11 17:38:05 -07:00
committed by GitHub
parent c0480a88be
commit 97a0031799
185 changed files with 541 additions and 551 deletions
@@ -55,7 +55,7 @@ class FakeViolationLog:
@classmethod
def allocate(
cls, *, capacity: int = DEFAULT_RING_CAPACITY, device: torch.device
) -> "FakeViolationLog":
) -> FakeViolationLog:
return cls(
ring=torch.zeros(
capacity, consts.VIOLATION_FIELDS, dtype=torch.int64, device=device