diff options
| author | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-26 19:53:08 +0545 |
|---|---|---|
| committer | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-26 19:53:08 +0545 |
| commit | f876fc42308b949e791e6f685fa9c6f32605667e (patch) | |
| tree | 31f706fc0f0f500ddba748efb9227aa7fb27d9b7 /config/hypr/UserScripts | |
| parent | 30839413484f72343d66035bbd77af700059d0a3 (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-x | config/hypr/UserScripts/Weather.py | 2 |
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, |
