mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[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:
committed by
PyTorch MergeBot
parent
01abbfbaae
commit
e779a30d50
@ -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
|
||||
|
Reference in New Issue
Block a user