
Reblogged by keul@fosstodon.org ("Luca Fabbri"):
tj@howse.social ("tjhowse") wrote:
In the past two days I have discovered that two senior developers at work didn't know that python type hinting does not affect runtime execution. Is this not common knowledge?
Just in case:
Python type hinting does NOT provide any runtime type guarantees!
Type hinting helps your IDE/linter/static checker interpret developer intent, and can be excellent documentation, but does absolutely nothing at runtime.