Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Disallow "not x in y" and "not x of y" #625

Open
DiThi opened this issue Nov 15, 2017 · 1 comment
Open

Disallow "not x in y" and "not x of y" #625

DiThi opened this issue Nov 15, 2017 · 1 comment

Comments

@DiThi
Copy link

DiThi commented Nov 15, 2017

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
Copy link

+1 for this one!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants