Python Functional Programming with returns library (type-safety, monads, etc.)
github.com
github.com
I love functional programming (use Elixir at work a fair amount), but almost every one of these examples is harder to read than than the equivalent "classic" Python (https://returns.readthedocs.io/en/latest/).
Plus, if you're going to write Python then deviating majorly from the normal approaches is going to require maintainers to learn a whole new way of doing things. Given the tools that Python provides, I don't think that's worth it for the benefit. Perhaps for some specific applications?
But I am probably biased because I prefer the ML family of languages for FP.
In general, this reminds me of the common problem where people assume their code will be reused far more often than it actually is and try to write code like the frameworks they’ve learned without considering whether they have the same resources to develop their new bespoke framework.