ImportError: cannot import name 'MATCH'


I’m trying to create an application that contains a callback that has as input some buttons that didn’t exist in the beginning. after some researches, I knew that I have to use the Pattern-Matching Callbacks.

the problem is when I import MATCH from dash.dependencies, it returns ImportError: cannot import name ‘MATCH’

this is how I did the import:
import dash
from dash.dependencies import Input, Output, MATCH

any idea how to fix that?

Try upgrading dash?