Comment Comment by londt8 You can use strict types and enforce that all types are correct during runtime. Check out mypy with "--no-any-expression" flag and Pydantic. parent londt8 6 years ago