Switch to mypy #245
Labels
area:rasa-sdk 🧑💻
Everything that touches our python Rasa SDK
priority:normal
Impacts some users. Prevents using a secondary feature normally.
type:maintenance 🔧
Improvements to tooling, testing, deployments, infrastructure, code style.
Problem:
We repeatedly had code issues which could have code by type checks. We currently use
pytype
and it didn't find very simple things like the one which @m-vdb shared here and could have prevented this issue.Proposed Solution
mypy
seems better suited and would have caught these issues. To gain more experience with it, we should start switching our smallest project,rasa-sdk
tomypy
. Depending on the results we can decide whether it's worth switchingrasa
orrasa-
x, too.Steps
rasa-sdk
tomypy
pytype
The text was updated successfully, but these errors were encountered: