Disallow "not x in y" and "not x of y"
DiThi opened this issue · 1 comments
DiThi commented
After years of usage of coffee script I still write not x in y
by mistake. Python interprets it as not (x in y)
but coffee interprets it as (not x) in y
which usually translates to false in y
which is not what we want.
It should suggest to change it to x not in y
or if it was what you wanted, !x in y
or (not x) in y
.
Same with not x of y
.
boris-petrov commented
+1 for this one!