diff --git a/superset/config.py b/superset/config.py index 30a858a29eeaa..31d6515e2845d 100644 --- a/superset/config.py +++ b/superset/config.py @@ -51,6 +51,7 @@ from superset.constants import CHANGE_ME_SECRET_KEY from superset.jinja_context import BaseTemplateProcessor from superset.key_value.types import JsonKeyValueCodec +from superset.pinterest.types import PinterestMenuItems from superset.stats_logger import DummyStatsLogger from superset.superset_typing import CacheConfig from superset.tasks.types import ExecutorType @@ -1664,7 +1665,7 @@ class ExtraRelatedQueryFilters(TypedDict, total=False): EXTRA_RELATED_QUERY_FILTERS: ExtraRelatedQueryFilters = {} -PINTEREST_MENU_ITEMS: List[Dict[str, str]] = None +PINTEREST_MENU_ITEMS: list[PinterestMenuItems] = None # Extra dynamic query filters make it possible to limit which objects are shown diff --git a/superset/pinterest/types.py b/superset/pinterest/types.py new file mode 100644 index 0000000000000..addae4689d3a7 --- /dev/null +++ b/superset/pinterest/types.py @@ -0,0 +1,7 @@ +from typing import TypedDict + + +class PinterestMenuItems(TypedDict): + name: str + href: str + icon: str