I write code, front-end and back-end, and like deploying it on AWS. Software Developer for 20 years, and still love it. Amateur Powerlifter & Parkourist.
Dude, that library is awesome. The annotations + automatic lifting of types is great!
I'll never be a fan of Python's TypeScript/Java inline typing style, ML/Haskell made me a fan of their way, but overall, I'm loving what I'm seeing in returns, thanks a lot for the share.
I write code, front-end and back-end, and like deploying it on AWS. Software Developer for 20 years, and still love it. Amateur Powerlifter & Parkourist.
Thanks a lot for this article!
Consider using returns library. It has several most useful monads like
Maybe,Result,IO,IOResult,Reader, and their combinations.The main feature of this library is that it is fully typed with
mypy. So,mypywill check that you are writing correct code before even running it.We also have beginner-friendly docs, so it would easy to teach your team to use it.
Make your functions return something meaningful, typed, and safe!
Make your functions return something meaningful, typed, and safe!
Features
mypy, PEP561 compatibleInstallation
You might also want to configure
mypycorrectly and install our plugin to fix this existing issue:We also recommend to use the same
mypysettings we use.Make sure you know how to get started, check out our docs!
Contents
None-free codeDude, that library is awesome. The annotations + automatic lifting of types is great!
I'll never be a fan of Python's TypeScript/Java inline typing style, ML/Haskell made me a fan of their way, but overall, I'm loving what I'm seeing in returns, thanks a lot for the share.
Thanks! I am open for any feedback from your side.
Keep creating stuff like that? Save the planet?