From ede91c9f89a1e2f53fbeaee95be7cda370419805 Mon Sep 17 00:00:00 2001 From: Allen Pestaluky Date: Wed, 4 Oct 2023 13:24:47 -0400 Subject: [PATCH] Added recommendation to turn on Add Type Hints with Untyped Declaration warning Fixes #82587 by improving usability of the untyped_declaration warning. This adds a note to the documentation that recommends turning on EditorSettings.text_editor/completion/add_type_hints when the untyped declaration warning is set to warn or error. Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> --- doc/classes/ProjectSettings.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index b49de068fd3..43a8562df50 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -556,6 +556,7 @@ When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when a variable or parameter has no static type, or if a function has no static return type. + [b]Note:[/b] This warning is recommended together with [member EditorSettings.text_editor/completion/add_type_hints] to help achieve type safety. When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when a local constant is never used.