Type hinting and Mypy

Python is dynamic typed language, but static type variable can be possible if we use type annotations. Python 3.5 and later versions have functionality of type hinting. Though It is completely optional. Type hinting is useful for testing purpose in CI. It does not change code to static variable; but it make easy to understand code that you have written long time ago. Simple example of type hinting: >>> number: int = 10 >>> name: str = "Akshay" Let’s see following funtion, [Read More]