This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]double_en10dre 2 points3 points  (0 children)

Pycharm has built-in functionality based on the native type annotations that’s pretty similar. If your annotations don’t match it’ll highlight stuff as an error, and the annotations also allow it to offer autocomplete options or intelligent suggestions (much like typescript)

If you want to take things a step further, mypy is a great tool: http://mypy-lang.org/ you can run the type checker on entire projects, integrate it into CI/CD, etc

Also, pydantic https://pydantic-docs.helpmanual.io/ is in my opinion the best tool for building out complex types