slightly stronger typing in dict call

This commit is contained in:
yuki 2025-11-17 19:43:42 -03:00
parent 40bd2f45c1
commit 56004d5b9b
3 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ var hit_dir: String
var hit_node_ref: WeakRef
func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void:
func _enter(_previous_state_path: String, _data: Dictionary[String, Variant] = {}) -> void:
print("entering hitting")
player.velocity = Vector2.ZERO
player.move_and_slide()

View file

@ -1,7 +1,7 @@
extends PlayerState
func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void:
func _enter(_previous_state_path: String, _data: Dictionary[String, Variant] = {}) -> void:
print("entering idle")
player.velocity = Vector2.ZERO
player.move_and_slide()

View file

@ -1,7 +1,7 @@
extends PlayerState
func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void:
func _enter(_previous_state_path: String, _data: Dictionary[String, Variant] = {}) -> void:
print("entering running")
player.move_and_slide()