Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nicolaslem
· 4y ago · 0 comments
In my opinion the best way to get started with typing annotations in Python is just having an editor that understands type hints.
Comments
[–]
romanovcode
4y ago
Unless your environment requires you to use Python e.g. data science I just wonder why not use something with types to begin with.
[–]
mejutoco
4y ago
I agree, but it is not enforced. When I see a @typechecked annotation I know that the tests touching that path will blow up if the type is not correct. With intellij or Visual Studio code it is more of an hint (pun intended) one cannot rely on.