Please watch carefully the question and carefully the answers of this and you'll see it's not a duplicate, especially because they dont answer my question.
Try to make a new empty project, and add this code. It works fine without warnings:
game_data = {'boats': [], }
game_data['boats'].append({'name': None})
Now change it to:
game_data = {'boats': [], 'width': None, 'height': None, }
game_data['boats'].append({'name': None})
Still no warnings. And change again to:
w = 12
game_data = {'boats': [], 'width': None, 'height': w, }
game_data['boats'].append({'name': None})
And now you'll get:
Expected type 'int' (matched generic type '_T'), got 'Dict[str, None]' instead
Am I the only one to have this? And why is this? Is there a solution to make this warning go away?