Skip to content

E126 (hanging indent over-indent) over-aggressive #189

Closed
@gsnedders

Description

@gsnedders

Given code such as:

E = {
    "null-character":
        _("Null character in input stream, replaced with U+FFFD."),
    "invalid-codepoint":
        _("Invalid codepoint in stream."),
    "incorrectly-placed-solidus":
        _("Solidus (/) incorrectly placed in tag."),
    "incorrect-cr-newline-entity":
        _("Incorrect CR newline entity, replaced with LF."),
    "illegal-windows-1252-entity":
        _("Entity used with illegal number (windows-1252 reference).")
}

I believe this is fine under PEP 8. It is using a hanging indent within the dict literal, which pep8 is fine with, and then treating (for each key_datum) the value as being a continuation of the key's definition (which pep8 is not fine with).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions