feat: Improve rendering of tags and cases#2943
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2943 +/- ##
=======================================
Coverage 83.81% 83.81%
=======================================
Files 267 267
Lines 53053 53061 +8
Branches 46992 46992
=======================================
+ Hits 44465 44473 +8
Misses 6318 6318
Partials 2270 2270
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:
|
croyzor
approved these changes
Mar 13, 2026
github-merge-queue bot
pushed a commit
that referenced
this pull request
Mar 16, 2026
🤖 I have created a release *beep* *boop* --- ## [0.15.5](hugr-py-v0.15.4...hugr-py-v0.15.5) (2026-03-16) ### Features * Define pass application scopes ([#2772](#2772)) ([847b864](847b864)) * deprecate Function (Value) in hugr-py too ([#2882](#2882)) ([043fec2](043fec2)) * Improve rendering of tags and cases ([#2943](#2943)) ([6ba9e45](6ba9e45)) ### Bug Fixes * **py:** Load and resolve lower_funcs in extensions ([#2924](#2924)) ([6dfc8e3](6dfc8e3)) ### Documentation * Add specification to sphinx docs ([#2907](#2907)) ([46ea04b](46ea04b)) --- 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 <agustin.borgna@quantinuum.com>
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.
Some minor changes to clean up the python rendering:
Add more special cases when rendering a
Tagoperation:FalseorTrue(We usedLeftandSomebefore)Nonecase (It was shown asLeftbefore)Print the case number inside conditionals
drive-by: Add missing
pytest-xdistdev dependency. It is used to pass-n autoto pytest in some just tasks.