47 ms·
Correct, the annotations in python don't enforce anything, although there are packages that make them produce errors, but again, those errors are at runtime. Y
by takeda 6y ago
Correct, the annotations in python don't enforce anything, although there are packages that make them produce errors, but again, those errors are at runtime.
You can run mypy which will list problems. Also PyCharm understands the annotations and does all the things I mentioned it do: proper autocomplete, proper refactoring functionality and highlighting errors