From 409a53bbae480c3b80283586ab0e47a76a4969cc Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Wed, 23 Oct 2024 11:43:57 -0400 Subject: [PATCH] refactor: More strongly type sass var maps --- shiny/ui/_theme_brand.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shiny/ui/_theme_brand.py b/shiny/ui/_theme_brand.py index 02baa2720..25d164ef5 100644 --- a/shiny/ui/_theme_brand.py +++ b/shiny/ui/_theme_brand.py @@ -12,7 +12,7 @@ from ._theme import Theme from ._theme_presets import ShinyThemePreset, shiny_theme_presets -color_map = { +color_map: dict[str, list[str]] = { "foreground": ["brand--foreground", "body-color", "pre-color"], "background": ["brand--background", "body-bg"], "primary": ["primary"], @@ -54,7 +54,7 @@ """ # TODO: test that these Sass variables exist in Bootstrap -typography_map = { +typography_map: dict[str, dict[str, str]] = { "base": { "family": "font-family-base", "size": "font-size-base",