Skip to content

Commit

Permalink
add hide
Browse files Browse the repository at this point in the history
  • Loading branch information
kousun12 committed Jun 19, 2024
1 parent 1ed9050 commit 6792525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/core/node_ext/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ class Config:
class Box(CoreNode[BoxOut]):
"""https://substrate.run/nodes#Box"""

def __init__(self, value: Union[Future, Any], **kwargs):
def __init__(self, value: Union[Future, Any], hide=False, **kwargs):
"""
Args:
value: Value to return.
https://substrate.run/nodes#Box
"""
super().__init__(value=value, **kwargs)
super().__init__(value=value, hide=hide, out_type=BoxOut, **kwargs)
self.node = "Box"
2 changes: 2 additions & 0 deletions substrate/core/node_ext/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __init__(
condition: ConditionCompatible,
value_if_true: Union[Future, Any],
value_if_false: Optional[Union[Future, Any]] = None,
hide: bool = False,
**kwargs,
):
"""
Expand All @@ -49,6 +50,7 @@ def __init__(
value_if_true=value_if_true,
value_if_false=value_if_false,
out_type=IfOut,
hide=hide,
**kwargs,
)
self.node = "LogicalIf"

0 comments on commit 6792525

Please sign in to comment.