Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes several issues with the new Godot 4 RC's
Issue 1 is resolved with this PR by quoting the warnings in all of @warning_ignore()
Issue 2 has two different resolutions due to different use cases.
addons/gdshell/scripts/gdshell_command_db.gd:get_all_command_names()
returns an Array[String] as other commands might rely on this functionality it is best to maintain static typing for the Array.get_all_commands()
now iterates over all keys and those which are of type string are added to a new Array[String] which is returned.addons/gdshell/commands/default_commands/gdfetch.gd:construct_output
uses the output frominfo.keys()
directly and does not return it, which makes it safe to simply drop the static type fromunused_info_keys
and use it as a generic Array.see: https://docs.godotengine.org/en/latest/classes/class_dictionary.html#class-dictionary-method-keys
see: https://www.reddit.com/r/godot/comments/10rqh9g/problem_with_typed_arrays_since_40_beta_17/