Skip to content

Commit

Permalink
undo adding type str for labels in new_action
Browse files Browse the repository at this point in the history
  • Loading branch information
YouGuessedMyName committed Nov 29, 2024
1 parent 907091a commit bbb1036
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion stormvogel/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def get_branch(self, state_or_id: State | int) -> Branch:
raise RuntimeError("Called get_branch on a non-empty transition.")
return transition[EmptyAction]

def new_action(self, name: str, labels: frozenset[str] | str | None = None) -> Action:
def new_action(self, name: str, labels: frozenset[str] | None = None) -> Action:
"""Creates a new action and returns it."""
if not self.supports_actions():
raise RuntimeError(
Expand Down

0 comments on commit bbb1036

Please sign in to comment.