Gdscript only requires commas between entries in a dictionary, so the last comma is not required. However, it has become a best practice to add a comma after the last entry as it does not cause any problems and allows other mods to easily append to the end of the dictionary using Strive's mod system.