Skip to content

Commit 573d51f

Browse files
dsarnoclaude
andcommitted
Fix test_dock.gd parse: annotate Variant-typed locals
`_dock` is typed as `Node` in this suite, so property chains through `_dock._dev_restart_btn.disabled` / `.tooltip_text` resolve to Variant and `:=` can't infer. CI Linux/macOS/Windows Godot tests all failed to load the suite as a result. Replace `:=` with explicit `: bool` / `: String` annotations on the four locals the parser flagged plus the nearby int local for consistency. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0014af6 commit 573d51f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test_project/tests/test_dock.gd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ func test_restart_server_btn_dispatches_to_force_restart_preserving_mode() -> vo
10151015
_dock._dev_restart_btn = Button.new()
10161016

10171017
_dock._on_dev_restart_pressed()
1018-
var calls := plugin.preserve_mode_calls
1018+
var calls: int = plugin.preserve_mode_calls
10191019

10201020
_dock._dev_restart_btn.free()
10211021
_dock._dev_restart_btn = null
@@ -1037,8 +1037,8 @@ func test_restart_server_btn_disabled_when_nothing_running() -> void:
10371037
_dock._dev_restart_btn = Button.new()
10381038

10391039
_dock._update_dev_restart_btn()
1040-
var disabled := _dock._dev_restart_btn.disabled
1041-
var tooltip := _dock._dev_restart_btn.tooltip_text
1040+
var disabled: bool = _dock._dev_restart_btn.disabled
1041+
var tooltip: String = _dock._dev_restart_btn.tooltip_text
10421042

10431043
_dock._dev_restart_btn.free()
10441044
_dock._dev_restart_btn = null
@@ -1056,8 +1056,8 @@ func test_restart_server_btn_enabled_when_managed_running() -> void:
10561056
_dock._dev_restart_btn = Button.new()
10571057

10581058
_dock._update_dev_restart_btn()
1059-
var disabled := _dock._dev_restart_btn.disabled
1060-
var tooltip := _dock._dev_restart_btn.tooltip_text
1059+
var disabled: bool = _dock._dev_restart_btn.disabled
1060+
var tooltip: String = _dock._dev_restart_btn.tooltip_text
10611061

10621062
_dock._dev_restart_btn.free()
10631063
_dock._dev_restart_btn = null

0 commit comments

Comments
 (0)