Skip to content

Commit

Permalink
fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Aug 13, 2023
1 parent 900a5d1 commit 461cf90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 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,8 @@ 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__"]) # type: ignore[attr-defined]
slot_values = slot.values # type: ignore[attr-defined]
return str([v for v in slot_values if not v == "__other__"])
else:
return None

Expand Down

0 comments on commit 461cf90

Please sign in to comment.