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

Unified Diff: flake8-eyeo/tests/A207.py

Issue 29565854: Noissue - Improved accuracy of evaluated expressions for A103 and A207 (Closed)
Patch Set: Changed behavior of A207 Created Oct. 11, 2017, 6:25 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« flake8-eyeo/flake8_eyeo.py ('K') | « flake8-eyeo/tests/A103.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: flake8-eyeo/tests/A207.py
===================================================================
--- a/flake8-eyeo/tests/A207.py
+++ b/flake8-eyeo/tests/A207.py
@@ -1,9 +1,13 @@
+x = object()
+
+
def make_dict():
return {
'foo': None,
'bar': None,
0: None,
1: None,
+ x: None,
# A207
'foo': None,
@@ -13,6 +17,10 @@
0.0: None,
# A207
True: None,
+ # A207
+ x: None,
+ # A207
+ str('foo'): None,
}
@@ -22,6 +30,7 @@
'bar',
0,
1,
+ x,
# A207
'foo',
@@ -31,4 +40,8 @@
0.0,
# A207
True,
+ # A207
+ x,
+ # A207
+ str('foo'),
}
« flake8-eyeo/flake8_eyeo.py ('K') | « flake8-eyeo/tests/A103.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld