Pattern: Use of tab before keyword
Issue: -
There should be only one space before a keyword.
In this example there is a tab before the in
keyword.
Note: The →
character represents a tab.
def func():
if 1→in [1, 2, 3]:
print('yep!')
Use only one space before the in
operator.
def func():
if 1 in [1, 2, 3]:
print('yep!')