Enable flake8-bugbear B020 lint (#110823)

Fixes part of https://github.com/pytorch/pytorch/issues/106571

Pull Request resolved: https://github.com/pytorch/pytorch/pull/110823
Approved by: https://github.com/Skylion007
This commit is contained in:
Oleg Bulatov
2023-10-24 22:43:43 +00:00
committed by PyTorch MergeBot
parent b600aed237
commit 192477b5ba
23 changed files with 70 additions and 67 deletions

View File

@ -14,7 +14,7 @@ ignore =
# to line this up with executable bit
EXE001,
# these ignores are from flake8-bugbear; please fix!
B007,B008,B017,B019,B020,B023,B026,B028,B903,B904,B905,B906,B907
B007,B008,B017,B019,B023,B026,B028,B903,B904,B905,B906,B907
# these ignores are from flake8-comprehensions; please fix!
C407,
# these ignores are from flake8-logging-format; please fix!