Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: flake8-eyeo/tests/A207.py

Issue 29565854: Noissue - Improved accuracy of evaluated expressions for A103 and A207 (Closed)
Left Patch Set: Rebased Created Oct. 11, 2017, 6:23 p.m.
Right Patch Set: Changed behavior of A207 Created Oct. 11, 2017, 6:25 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« flake8-eyeo/flake8_eyeo.py ('K') | « flake8-eyeo/tests/A103.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 x = object()
2
3
1 def make_dict(): 4 def make_dict():
2 return { 5 return {
3 'foo': None, 6 'foo': None,
4 'bar': None, 7 'bar': None,
5 0: None, 8 0: None,
6 1: None, 9 1: None,
10 x: None,
7 11
8 # A207 12 # A207
9 'foo': None, 13 'foo': None,
10 # A207 14 # A207
11 ['bar' + ' '][0].strip(): None, 15 ['bar' + ' '][0].strip(): None,
12 # A207 16 # A207
13 0.0: None, 17 0.0: None,
14 # A207 18 # A207
15 True: None, 19 True: None,
20 # A207
21 x: None,
22 # A207
23 str('foo'): None,
16 } 24 }
17 25
18 26
19 def make_set(): 27 def make_set():
20 return { 28 return {
21 'foo', 29 'foo',
22 'bar', 30 'bar',
23 0, 31 0,
24 1, 32 1,
33 x,
25 34
26 # A207 35 # A207
27 'foo', 36 'foo',
28 # A207 37 # A207
29 ['bar' + ' '][0].strip(), 38 ['bar' + ' '][0].strip(),
30 # A207 39 # A207
31 0.0, 40 0.0,
32 # A207 41 # A207
33 True, 42 True,
43 # A207
44 x,
45 # A207
46 str('foo'),
34 } 47 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld