Created
January 29, 2014 15:38
-
-
Save etianen/8690558 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Indent container contents on new lines. | |
some_tuple = ( | |
("foo", "bar"), | |
("baz", "bat"), # Always add trailing commas. | |
) | |
some_dict = { | |
"foo": "bar", | |
"baz": "bat", | |
} | |
# Long function calls likewise indented. | |
foo( | |
"foo", | |
foo = "bar", | |
baz = "bat", | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is fine with PEP8, but this is a hanging indent:
The error with this gist:
gistfile1.py:15:8: E251 unexpected spaces around keyword / parameter equals
gistfile1.py:15:10: E251 unexpected spaces around keyword / parameter equals
gistfile1.py:16:8: E251 unexpected spaces around keyword / parameter equals
gistfile1.py:16:10: E251 unexpected spaces around keyword / parameter equals
gistfile1.py:18:1: W391 blank line at end of file