From d1ea8ac23be0bab730656a9ef617df0919eb3091 Mon Sep 17 00:00:00 2001 From: Thomas Werkmeister Date: Tue, 4 Dec 2018 12:18:10 +0100 Subject: [PATCH] added parameter again, but fixed type annotation --- docs/slotfilling.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/slotfilling.rst b/docs/slotfilling.rst index 0592f24ed65..b83748d5796 100644 --- a/docs/slotfilling.rst +++ b/docs/slotfilling.rst @@ -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", @@ -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':