9 points by nedf in: 3 years, 1 month ago | 1 comment

3 points by intrepidhero 3 years ago | discuss | on: Python is Safer typed than you think
This was a great deep dive into error handling in python. Specifically the author was trying to write functions that must return either a valid result or an error value and still get the most benefit from mypy type analysis. I've run across this problem many times and never come up a solution as elegant as the author's final technique. Well done!