45 ms·
In my opinion the best way to get started with typing annotations in Python is just having an editor that understands type hints.
by nicolaslem 4y ago
In my opinion the best way to get started with typing annotations in Python is just having an editor that understands type hints.
- mejutoco 4y agoI 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.
- romanovcode 4y agoUnless your environment requires you to use Python e.g. data science I just wonder why not use something with types to begin with.