pytorch
e2a3817d - [BE] Enable C419 rule for any all shortcircuiting (#99890)

Commit
1 year ago
[BE] Enable C419 rule for any all shortcircuiting (#99890) Apparently https://github.com/pytorch/pytorch/pull/78142 made torch.JIT allow for simple generator expressions which allows us to enable rules that replace unnecessary list comprehensions with generators in any/all. This was originally part of #99280 but I split it off into this PR so that it can be easily reverted should anything break. Pull Request resolved: https://github.com/pytorch/pytorch/pull/99890 Approved by: https://github.com/justinchuby, https://github.com/kit1980, https://github.com/malfet
Author
Committer
Parents
Loading