Y
Hacker News
new
|
ask
|
show
|
jobs
by
DonaldPShimoda
2963 days ago
Type hints aren't checked or enforced by the compiler. They're really just special-syntax comments to help the developer (or IDE, as the case may be). I wouldn't call this "type checking".
1 comments
Tijdreiziger
2962 days ago
You can run a type-checking tool (e.g. mypy) which will tell you if you've made any type errors.
Since Python has no 'compile' step, type-checking takes the place of compiling in other languages.
link
Since Python has no 'compile' step, type-checking takes the place of compiling in other languages.