["python","python-typing","mypy"]
How to use reveal_type in Mypy

I have read that I can reveal the type of variables by using a function called reveal_type, but how can I use it, and where should I import it from?
I found out in the end how to use it: You should just put and use the reveal_type in the code, and run it with the Mypy program. Then, it will log a message that look like this: Revealed type is 'builtins.str*' From the Mypy documentation: reveal_type is only understood by Mypy and doesn’t exist in Python. If you try to run your program, you’ll have to remove any reveal_type calls before you can run your code. reveal_type is always available and you don’t need to import it. For more reading: Displaying the type of an expression.