A sum-type decorator for python
A sum-type decorator for python
I wrote this quick decorator for sum-types and was looking for feedback on if it makes sense. I had to do something similar for work with weird looking if-else blocks with type checks. I'm also looking for pointers to existing libs that add this and other FP features to python. Comments on the state of FP-like python at work are welcome! https://github.com/stangirala/python-sumtype-decorator
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
A Python with Hindley-Milner-like type annotations, compiling to C
Rescue – type-safe exceptions for Python
Math Type for Python
Rune’s Secret Type Ported to Python
Compile Python libraries for TypeScript with type completion (umo)
We built a type-safe Python ORM for RedisGraph/FalkorDB
Obiwan: type checking for Python
CustomStringParser ( Python)
Lusernews is an implementation of lamernews in python
Do/While in Python