summaryrefslogtreecommitdiff
path: root/testsuite/E21.py
blob: 2280caf26e73d829f639f9cc9e995df35badbdae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#: E211
spam (1)
#: E211
dict ['key'] = list [index]
#: E211
dict['key'] ['subkey'] = list[index]
#: E225
def squares(n):
    return (i**2 for i in range(n))
#: Okay
spam(1)
dict['key'] = list[index]


# This is not prohibited by PEP8, but avoid it.
class Foo (Bar, Baz):
    pass