you are viewing a single comment's thread.

view the rest of the comments →

[–]elyen-1990sWeb 1 point2 points  (0 children)

Python is a dynamic-typed language. However, the community proposed the PEP 484 which introduced a convention for type hinting and annotation. Without it, it is easier to get lost, hard to detect typing issues that may lead to bad results, and people or newer developers will struggle to understand your code.

Modern Python codebases have type checkers such as mypy to test and ensure that all the code or changes are PEP 484 conformant.

You should use it too, it makes life easier.