Skip to content

Commit

Permalink
Add missing "declare_str" method to WorkflowThread (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snarr authored Dec 11, 2024
1 parent 7bd7302 commit 8f5be05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk-python/littlehorse/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,9 @@ def declare_bool(self, name: str) -> WfRunVariable:
def declare_int(self, name: str) -> WfRunVariable:
return self.add_variable(name, VariableType.INT)

def declare_str(self, name: str) -> WfRunVariable:
return self.add_variable(name, VariableType.STR)

def declare_double(self, name: str) -> WfRunVariable:
return self.add_variable(name, VariableType.DOUBLE)

Expand Down

0 comments on commit 8f5be05

Please sign in to comment.