We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GDScript 4.2 now supports typed for loops
e.g.:
- for chunk in _chunks.values(): + for chunk: Chunk in _chunks.values():
gdlint and gdformat both result (obviously) in an error like:
for chunk: Chunk in _chunks.values(): ^ Unexpected token Token('COLON', ':') at line 40, column 11. Expected one of: * IN Previous tokens: [Token('NAME', 'chunk')]
for
The text was updated successfully, but these errors were encountered:
Oh... seems there is already support for this:
But might it be that it is not release yet? I reran pip3 install "gdtoolkit==4.*"
pip3 install "gdtoolkit==4.*"
Sorry, something went wrong.
Yes, it was not released as I was waiting for the official Godot release. Anyway, I've just released 4.2.0.
4.2.0
No branches or pull requests
GDScript 4.2 now supports typed for loops
e.g.:
gdlint and gdformat both result (obviously) in an error like:
for
loop variable godotengine/godot#80247The text was updated successfully, but these errors were encountered: