Add E211.

This commit is contained in:
Dave Halter
2017-06-23 09:49:18 +02:00
parent 2470f54baf
commit 6bea7094c8
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#: E211:4
spam (1)
#: E211:4 E211:19
dict ['key'] = list [index]
#: E211:11
dict['key'] ['subkey'] = list[index]
# Okay
spam(1)
dict['key'] = list[index]
# This is not prohibited by PEP8, but avoid it.
# Dave: I think this is extremely stupid. Use the same convention everywhere.
#: E211:9
class Foo (Bar, Baz):
pass