refactor: Update stop method in CustomComponent to allow for optional output_name parameter
This commit is contained in:
parent
4c1599f531
commit
5561b4ec52
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ class CustomComponent(BaseComponent):
|
|||
except Exception as e:
|
||||
raise ValueError(f"Error updating state: {e}")
|
||||
|
||||
def stop(self, output_name: str | None):
|
||||
def stop(self, output_name: str | None = None):
|
||||
if not output_name and self.vertex and len(self.vertex.outputs) == 1:
|
||||
output_name = self.vertex.outputs[0]["name"]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue