[8/N] Apply ruff UP035 rule (#165214)

This is follow-up of #164653 to continue applying `UP035` fixes. The purpose is to finally enable this rule.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165214
Approved by: https://github.com/ezyang
This commit is contained in:
Yuanyuan Chen
2025-10-15 03:18:57 +00:00
committed by PyTorch MergeBot
parent 36871622f1
commit b11593c31b
35 changed files with 71 additions and 45 deletions

View File

@ -2,7 +2,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates
import logging
import operator
from typing import Any, Optional, Sequence
from collections.abc import Sequence
from typing import Any, Optional
import torch
from torch.fx.node import map_aggregate