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: Equality check between Sum types #1422

Merged
merged 1 commit into from
Aug 13, 2024
Merged

fix: Equality check between Sum types #1422

merged 1 commit into from
Aug 13, 2024

Conversation

aborgna-q
Copy link
Collaborator

Sum, Tuple and UnitSum can represent the same type, but the equality fn checked the specific subclasses.

@aborgna-q aborgna-q requested a review from a team as a code owner August 13, 2024 14:01
@aborgna-q aborgna-q requested a review from croyzor August 13, 2024 14:01
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.70%. Comparing base (3bf968f) to head (57e1bca).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1422      +/-   ##
==========================================
+ Coverage   87.69%   87.70%   +0.01%     
==========================================
  Files         118      118              
  Lines       20441    20443       +2     
  Branches    18045    18045              
==========================================
+ Hits        17926    17930       +4     
+ Misses       1727     1725       -2     
  Partials      788      788              
Flag Coverage Δ
python 91.95% <100.00%> (+0.09%) ⬆️

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.

@aborgna-q aborgna-q added this pull request to the merge queue Aug 13, 2024
Merged via the queue into main with commit 8dfea09 Aug 13, 2024
21 checks passed
@aborgna-q aborgna-q deleted the ab/fix-sum-equality branch August 13, 2024 14:17
github-merge-queue bot pushed a commit that referenced this pull request Aug 14, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.7.0](hugr-py-v0.6.0...hugr-py-v0.7.0)
(2024-08-14)


### ⚠ BREAKING CHANGES

* **hugr-py:** `AsCustomOp` replaced with `AsExtOp`, so all such
operations now need to be attached to an extension.

### Features

* **hugr-py:** user facing Extension class
([#1413](#1413))
([c6473c9](c6473c9))
* **py:** Add node metadata
([#1428](#1428))
([b229be6](b229be6)),
closes [#1319](#1319)


### Bug Fixes

* Equality check between `Sum` types
([#1422](#1422))
([8dfea09](8dfea09))
* **py:** Invalid serialization of float and int constants
([#1427](#1427))
([b89c08f](b89c08f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Agustín Borgna <[email protected]>
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