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!: Make array repeat and scan ops generic over extension reqs #1716

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mark-koch
Copy link
Contributor

Closes #1714

BREAKING CHANGE: Array scan and repeat ops get an additional type parameter specifying the extension requirements of their input functions. Furthermore, repeat is no longer part of ArrayOpDef but is instead specified via a new ArrayScan struct.

@mark-koch mark-koch requested a review from a team as a code owner November 26, 2024 12:21
@mark-koch mark-koch requested a review from zrho November 26, 2024 12:21
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 94.55782% with 8 lines in your changes missing coverage. Please review.

Project coverage is 86.37%. Comparing base (c5c8a6f) to head (6ca12dc).

Files with missing lines Patch % Lines
hugr-core/src/extension/prelude/array.rs 94.55% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1716      +/-   ##
==========================================
+ Coverage   86.34%   86.37%   +0.03%     
==========================================
  Files         166      166              
  Lines       29747    29870     +123     
  Branches    26659    26782     +123     
==========================================
+ Hits        25684    25800     +116     
- Misses       2537     2542       +5     
- Partials     1526     1528       +2     
Flag Coverage Δ
python 92.42% <ø> (ø)
rust 85.67% <94.55%> (+0.03%) ⬆️

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

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

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.

Make array repeat and scan ops generic over the extension reqs of their input function
1 participant