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

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

Issue 29565854: Noissue - Improved accuracy of evaluated expressions for A103 and A207 (Closed)
Patch Set: Created Oct. 5, 2017, 9:41 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/flake8_eyeo.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/A103.py
===================================================================
--- a/flake8-eyeo/tests/A103.py
+++ b/flake8-eyeo/tests/A103.py
@@ -24,3 +24,7 @@
def compare_variables(a, b, c, d):
return (a, b) == (c, d) or a == b
+
+
+def compare_builtin(x):
+ return dir == x
Sebastian Noack 2017/10/05 22:07:11 This was causing an A103 (yoda expression), since
Vasily Kuznetsov 2017/10/06 10:46:21 Isn't this kind of a genuine yoda expression thoug
Sebastian Noack 2017/10/06 18:11:09 Another way to look at it is that builtin function
« flake8-eyeo/flake8_eyeo.py ('K') | « flake8-eyeo/flake8_eyeo.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld