Skip to content

Relax E127 with dictionary values: allow extra indent #785

Open
@blueyed

Description

@blueyed

Currently pycodestyle will complain about the following:

mydict = {12345:
              'foo'}

t-61.py:2:15: E127 continuation line over-indented for visual indent

We are about to change this in Vimjas/vim-python-pep8-indent#61, and there has been some discussion in python/peps#113 - resulting in keeping this out of PEP8 itself (i.e. undefined).

I think pycodestyle should handle this in a relaxed way, and allow for an extra indentation level for dictionary values (after : on the previous line).

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