Mimicking Immutability in Python with Type Hints
Immutable variables are supported by many languages, with some going even further by having immutability by default. Python is unfortunately not one of those languages. Still yet, we can leverage type hints and mypy to gain some of the benefits of immutability! Why do we even want immutability? First off, why do we even want to have immutability? Especially in a language like Python where achieving an acceptable level of immutability is nontrivial?