Skip to content

False negative for extraneous whitespace around colon #321

Open
@myint

Description

@myint

@anthonymayer reported this in hhatto/autopep8#156.

example.py:

x = [1, 2, 3, 4]
x[1: 3]

I would expect a message about extraneous whitespace after the colon, but pep8 seems to report nothing.

$ pep8 --version
1.5.7
$ pep8 example.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