Exhaustiveness Checking in Python Using Mypy

What if mypy could warn you about possible problems at “compile time”? In this article I share a little trick to get mypy to fail when a value in an enumeration type is left unhandled. Read more

Similar