aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts
diff options
context:
space:
mode:
authorprabinpanta0 <pantaprabin30@gmail.com>2025-10-26 19:53:08 +0545
committerprabinpanta0 <pantaprabin30@gmail.com>2025-10-26 19:53:08 +0545
commitf876fc42308b949e791e6f685fa9c6f32605667e (patch)
tree31f706fc0f0f500ddba748efb9227aa7fb27d9b7 /config/hypr/UserScripts
parent30839413484f72343d66035bbd77af700059d0a3 (diff)
config(hypr): relax out_data typing in Weather.py to Dict[str, Any]
Change out_data annotation from Dict[str, str] to Dict[str, Any] so the output can include non-string values (tooltip, class, etc.) and avoid type mismatches.
Diffstat (limited to 'config/hypr/UserScripts')
-rwxr-xr-xconfig/hypr/UserScripts/Weather.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/hypr/UserScripts/Weather.py b/config/hypr/UserScripts/Weather.py
index a566d5ec..3c5d58f9 100755
--- a/config/hypr/UserScripts/Weather.py
+++ b/config/hypr/UserScripts/Weather.py
@@ -744,7 +744,7 @@ def build_output(loc: Location, forecast: Optional[Dict[str, Any]], aqi: Optiona
)
)
- out_data: Dict[str, str] = {
+ out_data: Dict[str, Any] = {
"text": f"{data.icon} {data.temp_str}",
"alt": data.status,
"tooltip": tooltip_text,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage