Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
added parameter again, but fixed type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
twerkmeister committed Dec 4, 2018
1 parent 429f15b commit d1ea8ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/slotfilling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ You need to define three methods:
return "restaurant_form"
@staticmethod
def required_slots():
# type: () -> List[Text]
def required_slots(tracker):
# type: (Tracker) -> List[Text]
"""A list of required slots that the form has to fill"""
return ["cuisine", "num_people", "outdoor_seating",
Expand Down Expand Up @@ -320,7 +320,7 @@ for example:
@staticmethod
def required_slots(tracker):
# type: () -> List[Text]
# type: (Tracker) -> List[Text]
"""A list of required slots that the form has to fill"""
if tracker.get_slot('cuisine') == 'greek':
Expand Down

0 comments on commit d1ea8ac

Please sign in to comment.