ParentFull threadsilviogutierrez·Agreed on pattern matching, though mypy can help a lot here with exhaustive checks at the very least. They do work on enums and discriminated unions. They should document it:https://github.com/python/mypy/issues/6366https://github.com/python/mypy/issues/5818View on HN