From 5d70b9f42778d806747690c2e1be5525e0a8e111 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Wed, 25 Mar 2026 17:41:45 +0100 Subject: [PATCH] Strengthen types for linter --- nwcp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nwcp.py b/nwcp.py index 9e45622..3f26647 100644 --- a/nwcp.py +++ b/nwcp.py @@ -352,11 +352,13 @@ class NWCServiceProvider: content["result"] = out["result"] if "error" in out: content["error"] = out["error"] + raw_tags = out.get("tags") + tags = list(raw_tags) if isinstance(raw_tags, list) else [] # Prepare response event res: dict = { "kind": 23195, "created_at": int(time.time()), - "tags": list(out.get("tags", [])), + "tags": tags, "content": self._json_dumps(content), } # Reference request