From 6c9c6e0936751116f6f988d7194eefe16a24e5a1 Mon Sep 17 00:00:00 2001 From: Yuanyuan Chen Date: Fri, 17 Oct 2025 20:15:34 +0000 Subject: [PATCH] Enable C407 of flake8 (#165046) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR enables C407 on flake8. The description is `C407` is `Unnecessary list comprehension - ‘’ can take a generator`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/165046 Approved by: https://github.com/albanD --- .flake8 | 2 -- 1 file changed, 2 deletions(-) diff --git a/.flake8 b/.flake8 index 2cac8d3009b..2be8eab0dc8 100644 --- a/.flake8 +++ b/.flake8 @@ -13,8 +13,6 @@ ignore = EXE001, # these ignores are from flake8-bugbear; please fix! B007,B008,B017,B019,B023,B028,B903,B905,B906,B907,B908,B910 - # these ignores are from flake8-comprehensions; please fix! - C407, # these ignores are from flake8-logging-format; please fix! G100,G101,G200 # these ignores are from flake8-simplify. please fix or ignore with commented reason