feat: Add ptr extension and cleanup hugr.std module#2842
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2842 +/- ##
==========================================
- Coverage 83.69% 83.67% -0.02%
==========================================
Files 261 264 +3
Lines 53047 53083 +36
Branches 47374 47374
==========================================
+ Hits 44397 44419 +22
- Misses 6261 6275 +14
Partials 2389 2389
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cqc-alec
approved these changes
Jan 29, 2026
cqc-alec
pushed a commit
that referenced
this pull request
Feb 9, 2026
🤖 I have created a release *beep* *boop* --- ## [0.15.2](hugr-py-v0.15.1...hugr-py-v0.15.2) (2026-02-06) ### Features * Add ptr extension and cleanup `hugr.std` module ([#2842](#2842)) ([0871b82](0871b82)) * Add s expression format to envelope formats ([#2864](#2864)) ([2da5e8e](2da5e8e)) * Auto-embed extensions in stored hugrs ([#2843](#2843)) ([36408d4](36408d4)) * Replace pyzstd dependency with rust bindings ([#2846](#2846)) ([5047c81](5047c81)) --- 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the missing
ptrextension tohugr.std, cleanups the exports, and some other drive-bys:ExtensionRegistry.from_extensions(Iterable[Extension]) -> Selfhelper and__contains__method.std._std_extensionsmethod listing all extensions. We'll use this forHugr.to_bytesshould include required extensions #2841.hugr.std._util, so we can list the extension submodules in__all__, making them easier to access.