Skip to content

False positive for "bad-continuation" #289

@pylint-bot

Description

@pylint-bot

Originally reported by: Steven Myint (BitBucket: myint, GitHub: @myint?)


This valid style is incorrectly labeled as bad-continuation.

def test():
    if (
        True or
        False
    ):
        pass
C:  3, 0: Wrong hanging indentation before block.
        True or
        ^   | (bad-continuation)
C:  4, 0: Wrong hanging indentation before block.
        False
        ^   | (bad-continuation)

As described in #232, there are more false positives demonstrated in E12not.py.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions