Skip to content

bad-continuation false alarm and failure to disable #2304

Closed
@kayhayen

Description

@kayhayen

Steps to reproduce

I have this code piece:

        emit(
            """\
SET_CURRENT_EXCEPTION( exception_preserved_type_%(preserver_id)d, \
exception_preserved_value_%(preserver_id)d, \
exception_preserved_tb_%(preserver_id)d );""" % {
                "preserver_id" : preserver_id,
            }
        )

I think it wants the hanging "}" brace to align one level shorter, which is false.

With that false alarm in place, --disable=bad-continuation on the command line has no effect. I cannot disable the warning until the bug is fixed.

Current behavior

Reports:

nuitka\codegen\FrameCodes.py:446 C0330 bad-continuation Wrong hanging indentation.
}
| | ^

Expected behavior

No report, and allow --disable on that error.

pylint --version output

c/Python36_32/python -m pylint --version
main.py 2.0.0
astroid 2.0.0.dev4
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)]

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions