Skip to content

Commit 409a53b

Browse files
committed
refactor: More strongly type sass var maps
1 parent ced644a commit 409a53b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shiny/ui/_theme_brand.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from ._theme import Theme
1313
from ._theme_presets import ShinyThemePreset, shiny_theme_presets
1414

15-
color_map = {
15+
color_map: dict[str, list[str]] = {
1616
"foreground": ["brand--foreground", "body-color", "pre-color"],
1717
"background": ["brand--background", "body-bg"],
1818
"primary": ["primary"],
@@ -54,7 +54,7 @@
5454
"""
5555

5656
# TODO: test that these Sass variables exist in Bootstrap
57-
typography_map = {
57+
typography_map: dict[str, dict[str, str]] = {
5858
"base": {
5959
"family": "font-family-base",
6060
"size": "font-size-base",

0 commit comments

Comments
 (0)