[BE] Fix SIM109 compare-with-tuple (#100337)

Use {replacement} instead of multiple equality comparisons

Pull Request resolved: https://github.com/pytorch/pytorch/pull/100337
Approved by: https://github.com/Skylion007
This commit is contained in:
Justin Chu
2023-04-30 10:16:52 -07:00
committed by PyTorch MergeBot
parent 01abbfbaae
commit e779a30d50
6 changed files with 6 additions and 10 deletions

View File

@ -278,7 +278,7 @@ def processKernelLaunches(string, stats):
char = string[i]
# Handle Templating Arguments
if status == START or status == AT_TEMPLATE:
if status in (START, AT_TEMPLATE):
if char == ">":
if status == START:
status = AT_TEMPLATE