Not really a problem per say but i found it really frustrating because i was debugging an issue related to a level of a skill which was returning 1, turns out, the function which was getting the level was returning a bool. However, the code clearly states current_level is an int. Took me a while to figure it out as the editor does not throw an error in the syntax. I feel it should throw an error shouldnt it?
var current_level: int = 0
if learned_skills.has(skill_id):
current_level = learned_skills[skill_id]["level"]
else:
current_level = 1
return current_level```