From 86acb877718a52c44eb9c05cb6ba81006156e314 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 22 Mar 2026 18:28:35 +0100 Subject: [PATCH] fix(client): explicit Variant type on JSON.parse_string return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GDScript strict mode rejects type inference from Variant-returning functions. JSON.parse_string() returns Variant — use explicit type annotation to satisfy the parser. Co-Authored-By: Claude Opus 4.6 --- client/scripts/rendering/character_visual.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/rendering/character_visual.gd b/client/scripts/rendering/character_visual.gd index 2b504ef97..57ed2e96c 100644 --- a/client/scripts/rendering/character_visual.gd +++ b/client/scripts/rendering/character_visual.gd @@ -475,7 +475,7 @@ func _read_coverage(path: String) -> Dictionary: var file := FileAccess.open(path, FileAccess.READ) if file == null: return {} - var parsed := JSON.parse_string(file.get_as_text()) + var parsed: Variant = JSON.parse_string(file.get_as_text()) file.close() if parsed is Dictionary: return parsed