Skip to content

Commit

Permalink
Add pinterest types (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgopal492 authored and zhangvi7 committed Aug 1, 2024
1 parent 71c60ad commit 6fba557
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions superset/pinterest/types.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from typing import TypedDict


class PinterestMenuItems(TypedDict):
name: str
href: str
icon: str

0 comments on commit 6fba557

Please sign in to comment.