Re:Why I'm still using Python
by icedchai on Friday December 30, 2022 @05:57PM
(#34191123)
Type hints are basically for documentation and metadata. You also find a bunch of third party libraries and frameworks, like pydantic, fastapi, etc. that makes use of them.
[ Parent
| on HN ]
Re:Why I'm still using Python
by dragonwriter on Friday December 30, 2022 @06:58PM
(#34191648)
> Type hints are basically for documentation and metadata.
They are also for static checking.
If you choose to run the code despite that failing (which you can, because there is no execution dependency on type-checking) that’s a choice, but its kind of odd to complain that Python lets you do that.