Skip to content

Commit

Permalink
remove wrong 'Optional' type
Browse files Browse the repository at this point in the history
Co-Authored-By: ricwo <[email protected]>
  • Loading branch information
wochinge and ricwo committed Mar 20, 2020
1 parent 1db4aee commit 6ba8d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def event_verbosity_parameter(

async def get_tracker(
processor: "MessageProcessor", conversation_id: Text
) -> Optional[DialogueStateTracker]:
) -> DialogueStateTracker:
"""Get tracker object from `MessageProcessor`."""
tracker = await processor.get_tracker_with_session_start(conversation_id)
_validate_tracker(tracker, conversation_id)
Expand Down

0 comments on commit 6ba8d86

Please sign in to comment.