diff --git a/addons/export_tool_manager/export_tool_manager_plugin.gd b/addons/export_tool_manager/export_tool_manager_plugin.gd index 4cb988ec..5b70ee06 100644 --- a/addons/export_tool_manager/export_tool_manager_plugin.gd +++ b/addons/export_tool_manager/export_tool_manager_plugin.gd @@ -59,10 +59,10 @@ func _on_tool_selected(index: int) -> void: var settings: EditorSettings = get_editor_interface().get_editor_settings() settings.set_setting("export_tool_manager/current_tool", tool) -func _on_export_all_game_pressed(): +func _on_export_all_game_pressed() -> void: export_all_game_presets() -func export_all_game_presets(): +func export_all_game_presets() -> void: var godot_path: String = OS.get_executable_path() var exportFolder = "../Export/autobuilds/" var presets: Dictionary[String, String]= { diff --git a/addons/godot-form-validator/rules/required_rule.gd b/addons/godot-form-validator/rules/required_rule.gd index f6cc0edd..c293b526 100644 --- a/addons/godot-form-validator/rules/required_rule.gd +++ b/addons/godot-form-validator/rules/required_rule.gd @@ -3,7 +3,7 @@ extends ValidatorRule class_name RequiredRule -func _init(): +func _init() -> void: fail_message = "A value is required." diff --git a/addons/godot-sqlite/godot-sqlite.gd b/addons/godot-sqlite/godot-sqlite.gd index f81d95c0..6e9b320e 100644 --- a/addons/godot-sqlite/godot-sqlite.gd +++ b/addons/godot-sqlite/godot-sqlite.gd @@ -7,8 +7,8 @@ @tool extends EditorPlugin -func _enter_tree(): +func _enter_tree() -> void: pass -func _exit_tree(): +func _exit_tree() -> void: pass diff --git a/script_templates/Node/default.gd b/script_templates/Node/default.gd index 449353cb..7ea4e3ec 100644 --- a/script_templates/Node/default.gd +++ b/script_templates/Node/default.gd @@ -38,7 +38,7 @@ extends _BASE_ #12. static_init # Called automatically when the class is loaded, after the static variables have been initialized -static func _static_init(): +static func _static_init() -> void: # my_static_var = 2 # A static constructor cannot take arguments and must not return any value. pass @@ -49,12 +49,12 @@ static func _static_init(): #14-1. overridden built-in virtual methods: # Called upon creating the object in memory. -func _init(): +func _init() -> void: pass # Called before _ready(). Called when the node enters the scene tree, likewise _exit_tree() is called when it exits the scene tree. -func _enter_tree(): +func _enter_tree() -> void: pass