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 missing node normalization to match pytree.convert #30

Merged
merged 2 commits into from
May 15, 2021

Conversation

terencehonles
Copy link
Contributor

@terencehonles terencehonles commented May 14, 2021

I was going to write this as a bug/question, but then I realized what was going on (I had already stepped through the lib2to3 code in PDB). It looks like this issue is the same as #23 and I added it's example and the test case I was going off of.

I will probably look at #25 since that looks like it's probably related to convert_annotation(Attribute), but I'm not sure if it would be best to merge them together or split them out separately since they will likely be touching much of the same code.

fixes: #23, fixes #25

@terencehonles
Copy link
Contributor Author

@gaborbernat
Copy link
Collaborator

Done that, can you amend your last commit to retrigger?

@codecov-commenter
Copy link

codecov-commenter commented May 14, 2021

Codecov Report

Merging #30 (652fa80) into master (ed773ae) will increase coverage by 0.74%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
+ Coverage   77.60%   78.34%   +0.74%     
==========================================
  Files           4        4              
  Lines         942      956      +14     
  Branches      214      219       +5     
==========================================
+ Hits          731      749      +18     
+ Misses        170      167       -3     
+ Partials       41       40       -1     
Flag Coverage Δ
tests 78.34% <100.00%> (+0.74%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/retype/__init__.py 86.07% <100.00%> (+0.72%) ⬆️

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 7298175...652fa80. Read the comment docs.

@terencehonles
Copy link
Contributor Author

Done that, can you amend your last commit to retrigger?

Thanks, fixing #25 was easier than I thought and didn't require as many changes to the dispatch functions as I initially had thought

@@ -2,8 +2,6 @@ name: check
on:
push:
pull_request:
schedule:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to remove these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can back out the change, but I was wondering if that would fix the workflow being disabled 🤷

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make it part of another PR if we'd do it.

Copy link
Collaborator

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaborbernat gaborbernat merged commit e759da7 into ambv:master May 15, 2021
@gaborbernat
Copy link
Collaborator

Seems the pypi token we have set up is invalid, will reach out to @ambv to fix that and do a release after. Thanks for your contribution!

@terencehonles
Copy link
Contributor Author

No prob, thanks for the quick review. I have another PR that I was working on that will follow this, but it's possibly something that will take more time to review so I figured I'd fix the bugs I was running into first. It so happened they were already reported 😅

@gaborbernat
Copy link
Collaborator

Release now out, all good!

@terencehonles terencehonles deleted the fix-missing-normalization branch May 20, 2021 01:27
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.

Redefining aliases that use typing module fails retype does not seem to handle Callable correctly
3 participants