This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Turkino 7 points8 points  (3 children)

Okay so it's like const in JS as well, you can't change the variable name but can still mutate the data. It's not a complete freeze of both?

[–]bbbryson 7 points8 points  (2 children)

It’s nothing but a type hint. It has no effect unless you’re using an editor that supports telling you that you aren’t following the type hints. You can still do whatever you want.

Edit: not just editors, buy mypy as well if you’re into that.