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

Handle annotated assignment in 3.6 #23

Merged
merged 1 commit into from Oct 5, 2018
Merged

Conversation

worr
Copy link
Contributor

@worr worr commented Oct 4, 2018

In 3.6, annotated assignment was added, which takes the form of a: int = 0.
This would cause errors, since : is an operator, and its child would contain
nodes of type annassign.

We handle these the same way that we handle normal assignments, but by dropping
into the assignment logic at an offset in the expression we're handling.

In 3.6, annotated assignment was added, which takes the form of `a: int = 0`.
This would cause errors, since `:` is an operator, and its child would contain
nodes of type `annassign`.

We handle these the same way that we handle normal assignments, but by dropping
into the assignment logic at an offset in the expression we're handling.
@codecov-io
Copy link

codecov-io commented Oct 4, 2018

Codecov Report

Merging #23 into master will increase coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
+ Coverage   87.23%   87.35%   +0.12%     
==========================================
  Files           3        3              
  Lines         525      530       +5     
==========================================
+ Hits          458      463       +5     
  Misses         67       67
Impacted Files Coverage Δ
mutmut/__init__.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ec6889...33147d2. Read the comment docs.

@boxed
Copy link
Owner

boxed commented Oct 5, 2018

Great! Thanks for this. Do you need a release with this right now?

@boxed boxed closed this Oct 5, 2018
@boxed boxed reopened this Oct 5, 2018
@boxed boxed merged commit 73f0bfc into boxed:master Oct 5, 2018
@worr
Copy link
Contributor Author

worr commented Oct 5, 2018 via email

@boxed
Copy link
Owner

boxed commented Oct 7, 2018

I've made a release now. I must admit that I don't really have a release cadence! The project is mostly done excepting some fairly major ideas I have that might or might not be a good idea :P

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.

None yet

3 participants