While implementing custom slot_mapping getting issue like "'Union' is not defined"

Hi, I am working on rasa bot application and try to implement custom slot_mapping. I am getting error. Error screen shot attached here.

below is my environment details. Rasa Version : 2.1.2 Rasa SDK Version : 2.1.2 Rasa X Version : 0.34.0 Python Version : 3.7.3 Regards, subbu. mobile:9345328735.

Hi @subbu_y80, You need to import Union from typing while defining the custom slot mappings.

from typing import Union

Thanks, Uday

Issue got resolved. thanks Uday.

Your welcome. I have seen you in CLL - Rasa group.