Rules: indentation: Fix B_SEQ instead of B_ENT
For example in this case, the scalar's parent is a B_ENT (only its
grandparent is a B_SEQ):
- >
multi
line
This commit is contained in:
@@ -233,7 +233,7 @@ def check_scalar_indentation(conf, token, context):
|
||||
elif token.style in ('"', "'"):
|
||||
return token.start_mark.column + 1
|
||||
elif token.style in ('>', '|'):
|
||||
if context['stack'][-1].type == B_SEQ:
|
||||
if context['stack'][-1].type == B_ENT:
|
||||
# - >
|
||||
# multi
|
||||
# line
|
||||
|
||||
Reference in New Issue
Block a user