Skip to content

Commit

Permalink
add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
wochinge committed Nov 17, 2020
1 parent 3d3609c commit 9190bef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rasa_sdk/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ class FormValidationAction(Action, ABC):
"""A helper class for slot validations and extractions of custom slots."""

def form_name(self) -> Text:
"""Returns the form's name."""
return self.name().replace("validate_", "", 1)

async def run(
Expand All @@ -690,6 +691,7 @@ async def run(
tracker: "Tracker",
domain: "DomainDict",
) -> List[EventType]:
"""Runs the custom actions. Please the docstring of the parent class."""
extraction_events = await self.extract_custom_slots(dispatcher, tracker, domain)
tracker.add_slots(extraction_events)

Expand Down

0 comments on commit 9190bef

Please sign in to comment.