3 ms·
Python’s type checking story is pretty painful right now, partly because the typing library has a lot of confusing corners, MyPy (the reference type checker imp
by weberc2 9y ago
Python’s type checking story is pretty painful right now, partly because the typing library has a lot of confusing corners, MyPy (the reference type checker implementation) is pretty buggy, the rules are limiting (no support for interfaces/protocols and no recursive types), and magical code like SQLAlchemy simply can’t be type-stubbed.
These are all tractable problems, so I don’t see a theoretical problem; however without more info on your flow issues I can’t make a good comparison.
- agravier 9y agoGenerally true but MyPy has some support for protocols http://mypy.readthedocs.io/en/latest/class_basics.html#protocols-and-structural-subtyping http://mypy.readthedocs.io/en/latest/class_basics.html#proto...
- weberc2 8y agoWhoa, I didn’t realize structural subtyping had landed already. Thanks for sharing!