I have been using Python typing’s ‘NoReturn’ wrong
I am a huge fan of python’s new typing module which was introduced in version
3.5. The addition of this module gives us a range of tools to help people read
and understand your code in the future.
Since I have started using typing I have been adding argument types, and return
types to almost all of my public functions. One that keeps popping up isNoReturn
, and as it turns out I have been using it wrong.