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 template instance operator binding. #445

Merged
merged 3 commits into from
May 24, 2021

Conversation

MatthieuDartiailh
Copy link
Member

Template instance operator binding require some extra work compared to conventional operator binding since we need both the node where the template is instantiated and where it is defined. However the analysis of globals and comprehensions performed for standards operators apply but was not carried out previously. This bug has been there for quite some time and was likely introduced when migrating to Python 3.

This needs tests before it can be merged.

Template instance operator binding require some extra work compared to conventional operator binding since we need both the node where the template is instantiated and where it is defined (I think) however the same analysis in term of globals and comprehensions apply which was not done previously.
@codecov-commenter
Copy link

codecov-commenter commented May 21, 2021

Codecov Report

Merging #445 (5a54c42) into main (d9bc860) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #445   +/-   ##
=======================================
  Coverage   73.47%   73.47%           
=======================================
  Files         316      316           
  Lines       24060    24061    +1     
=======================================
+ Hits        17677    17678    +1     
  Misses       6383     6383           

@MatthieuDartiailh MatthieuDartiailh merged commit 4780960 into main May 24, 2021
@MatthieuDartiailh MatthieuDartiailh deleted the template-inst-operator-binding branch May 24, 2021 07:21
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

2 participants