I've just merged a PR that fixes the 1000 or so mypy errors on sympy's master branch: https://github.com/sympy/sympy/pull/18244
This means it is now possible to try out using mypy without seeing lots of unrelated errors. The next step is to add type hints in key places. They don't need to be everywhere: the hints are inherited by subclasses so adding hints on Basic/Expr will propagate down. I guess that key functions like sympify will need to be hinted as well for it to work effectively. There are a few places where I used type: ignore. One thing that neither mypy or flake8 likes is multipledispatch where the same function/method name is used repeatedly. Hopefully we can find a better solution for that than type:ignore. https://github.com/sympy/sympy/issues/17795 The other side effect of that PR is that it is now possible to have Python 3 only syntax in master (previously the tests would have failed). -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxQj7CX0f0TCg9j0LWAU%3Ds-YaXxt7pDdNwdXv_CXqhpeog%40mail.gmail.com.
