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

fix: enforce that loop's iterators are valid names #3242

Merged

Conversation

trocher
Copy link
Contributor

@trocher trocher commented Jan 20, 2023

What I did

Fixed #3241

How I did it

Added a check to raise an exception if the iterator of a loop is not a Name.

How to verify it

See test

Commit message

fix: enforce that loop's iterators are valid names

Description for the changelog

Enforce that loop's iterators are valid names

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@trocher trocher changed the title fix: enforce that loop's iterator is a valid name fix: enforce that loop's iterators are valid names Jan 20, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2023

Codecov Report

Merging #3242 (5ad81c1) into master (d4f04c6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #3242   +/-   ##
=======================================
  Coverage   88.94%   88.94%           
=======================================
  Files          84       84           
  Lines       10588    10590    +2     
  Branches     2208     2209    +1     
=======================================
+ Hits         9417     9419    +2     
  Misses        760      760           
  Partials      411      411           
Impacted Files Coverage Δ
vyper/semantics/analysis/local.py 91.31% <100.00%> (+0.05%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@charles-cooper charles-cooper merged commit 8316720 into vyperlang:master Jan 20, 2023
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.

AttributeError when using invalid expression as loop's iterator
3 participants