Skip to content

Commit

Permalink
fixed type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Aug 13, 2023
1 parent 4251db7 commit 900a5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa/cdu/command_generator/llm_command_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def allowed_values_for_slot(self, slot: Slot) -> Optional[str]:
if slot.type_name == "bool":
return str([True, False])
if slot.type_name == "categorical":
return str([v for v in slot.values if not v == "__other__"])
return str([v for v in slot.values if not v == "__other__"]) # type: ignore[attr-defined]
else:
return None

Expand Down

0 comments on commit 900a5d1

Please sign in to comment.