3 ms·
Type checks don’t actually enforce anything though, and as far as I can tell don’t even produce a warning in vscode unless everything is typed (a typed var fed
by ed25519FUUU 6y ago
Type checks don’t actually enforce anything though, and as far as I can tell don’t even produce a warning in vscode unless everything is typed (a typed var fed into a typed function signature).
- takeda 6y agoCorrect, 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