Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for not in comparator #2232

Merged
merged 3 commits into from
Nov 28, 2020

Conversation

iamdefinitelyahuman
Copy link
Contributor

@iamdefinitelyahuman iamdefinitelyahuman commented Nov 27, 2020

What I did

Add support for the not in comparator

Closes #2218

How I did it

  • Added the NotIn ast node
  • Expand the list comparator logic in parser to support not in

How to verify it

Run the tests. I added some new cases to test this behaviour.

Cute Animal Picture

image

tests/grammar/vyper.lark Show resolved Hide resolved
vyper/ast/nodes.py Outdated Show resolved Hide resolved
@iamdefinitelyahuman iamdefinitelyahuman merged commit a222091 into vyperlang:master Nov 28, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the feat-notin branch November 28, 2020 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no support for not in comparator
2 participants