Skip to content Skip to sidebar Skip to footer
Showing posts with the label Static Typing

In Python 3.5, How Can I Specify A Function As A Type Hint?

What is the appropriate type hint to specify that a variable should be a function (the equivalent o… Read more In Python 3.5, How Can I Specify A Function As A Type Hint?

How To Make Mypy Complain About Assigning An Any To An Int

mypy --strict dutifully complains about the following code: from typing import Any, Dict def main(… Read more How To Make Mypy Complain About Assigning An Any To An Int