superfluous-parens / C0325#

Message emitted:

Unnecessary parens after %r keyword

Description:

Used when a single item in parentheses follows an if, for, or other keyword.

Correct code:

x = input()
y = input()
if x == y:
    pass

i = 0
exclude = []
if i - 0 in exclude:
    pass

Problematic code:

x = input()
y = input()
if (x == y):  # [superfluous-parens]
    pass

i = 0
exclude = []
if (i - 0) in exclude:  # [superfluous-parens]
    pass

Created by the format checker.