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

feat: [FYI] RangeChecker/RangeCompiler to support 1/2/3 args #453

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

acl-cqc
Copy link
Contributor

@acl-cqc acl-cqc commented Sep 4, 2024

No description provided.

from guppylang.compiler.expr_compiler import python_value_to_hugr
from guppylang.definition.custom import CustomFunctionDef

# Find the builtins module. Brute-force search!
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the worst bit! Custom Checkers get access to the Func + full Context, Compilers only get the CompiledGlobals which is rather hard to use

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 72.09302% with 12 lines in your changes missing coverage. Please review.

Project coverage is 92.48%. Comparing base (6d40278) to head (7f72deb).

Files with missing lines Patch % Lines
guppylang/prelude/_internal/compiler.py 70.00% 6 Missing ⚠️
guppylang/prelude/builtins.py 54.54% 5 Missing ⚠️
guppylang/prelude/_internal/checker.py 91.66% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           acl/range_one     #453      +/-   ##
=================================================
- Coverage          92.58%   92.48%   -0.10%     
=================================================
  Files                 49       49              
  Lines               5555     5591      +36     
=================================================
+ Hits                5143     5171      +28     
- Misses               412      420       +8     

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

Base automatically changed from acl/range_one to main September 9, 2024 15:58
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.

2 participants