Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a recommendation to turn on type hints with untyped declaration warning #82801

Merged

Conversation

allenwp
Copy link
Contributor

@allenwp allenwp commented Oct 4, 2023

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. This new text echos the recommendation proposed in the docs PR

@allenwp allenwp requested a review from a team as a code owner October 4, 2023 17:29
@Calinou Calinou added this to the 4.2 milestone Oct 4, 2023
Copy link
Contributor

@YuriSizov YuriSizov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would reword this slightly to better fit our overall style and formatting. But should be good otherwise.

…on warning

Fixes godotengine#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>
@allenwp allenwp force-pushed the 82587-untyped-declaration-usability branch from 0b3098f to ede91c9 Compare October 30, 2023 19:47
@YuriSizov YuriSizov changed the title Added recommendation to turn on type hints with untyped declaration Add a recommendation to turn on type hints with untyped declaration warning Oct 30, 2023
@allenwp
Copy link
Contributor Author

allenwp commented Oct 30, 2023

Suggested change looks like an improvement to me!

image
image

I've squashed the commits, so I think they should be ready for merge.

@akien-mga akien-mga merged commit 608226a into godotengine:master Oct 30, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default Node GDScript Template has Warnings/Errors with new Untyped Declaration Warning
4 participants