Repository navigation
Let an item handle stand in for its sockets (520.32.1) - #241
Merged
Merged
Conversation
An Item can be passed as a node argument or used on either side of >>: as a value or on the left it is item.output, on the right it is item.input, and the chain continues from item.output. One-sided items raise for the side they lack, and zone state items keep asking for a role, since they have two inputs and two outputs. This restores code that fed a bundle item straight into a node before 520.32.0 returned handles. Version 520.32.1.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #241 +/- ##
=======================================
Coverage 98.34% 98.34%
=======================================
Files 101 101
Lines 30252 30277 +25
=======================================
+ Hits 29752 29777 +25
Misses 500 500 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Patch release 520.32.1.
An
Itemhandle now stands in for its sockets:initial,current,nextorresult, since they have two inputs and two outputs; the handle itself raises with that list. For-eachitems,main_itemsandgenerated_itemsare ordinary two-role items and get the behaviour..outputkeeps working.Typed through an
__rshift__overload sonode >> itemis the item's output socket class.