Pattern: Use of under-indented continuation line for hanging indent
Issue: -
A line is less indented than it should be for hanging indents.
In the first example, the keys of this dict
are only indented with 3 spaces. They should be indented with 4 spaces.
result = {
'key1': 'value',
'key2': 'value',
}
result = {
'key1': 'value',
'key2': 'value',
}
In this example, the second line is only indented with 2 spaces. It should be indented with 4 spaces.
print("Python", (
"Rules"))
print("Python", (
"Rules"))