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[lang]: builtin type comparisons #3956

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Apr 15, 2024

What I did

fix #3954

How I did it

How to verify it

Commit message

prior to this commit, due to re-loading and re-analysing the builtin
modules, the types defined in those modules do not compare when they are
imported in different files. this commit globally(!) caches the builtin
modules, ensuring builtin types compare correctly no matter how they are
imported. the global scope should be safe, since builtins are always
stable across compilations.

Description for the changelog

Cute Animal Picture

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

prior to this commit, due to re-loading and re-analysing the builtin
modules, the types defined in those modules do not compare when they are
imported in different files. this commit globally(!) caches the builtin
modules. the global scope should be safe, since builtins are always
stable across compilations.
@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.02%. Comparing base (214a352) to head (5dd17e2).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3956      +/-   ##
==========================================
- Coverage   90.87%   89.02%   -1.85%     
==========================================
  Files          95       95              
  Lines       14449    14454       +5     
  Branches     3204     3205       +1     
==========================================
- Hits        13130    12868     -262     
- Misses        911     1123     +212     
- Partials      408      463      +55     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@charles-cooper charles-cooper merged commit 54c033b into vyperlang:master Apr 15, 2024
149 checks passed
electriclilies pushed a commit to electriclilies/vyper that referenced this pull request Apr 27, 2024
prior to this commit, due to re-loading and re-analysing the builtin
modules, the types defined in those modules do not compare when they are
imported in different files. this commit globally(!) caches the builtin
modules, ensuring builtin types compare correctly no matter how they are
imported. the global scope should be safe, since builtins are always
stable across compilations.
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.

implements does not respect public getter of interface type
4 participants