|
|
|
|
|
by teddyh
878 days ago
|
|
Summarizing quote: “Python type hints are a core part of the language, they even have standard library modules (typing), and yet they don’t do anything when used in that language without some external tooling. That, to me, is a bit of an expectations mismatch.” I.e. they’re complaining that a type checker like mypy isn’t run by default. |
|
Let's think of this in a deploy environment like kubernetes -- if you don't have such a check, then you could deploy code that fails _at runtime_, causing an outage, because someone made a mistake with types.
If you fail _at startup_, then the deploy will never go healthy and will fail, leaving the old pods still running, causing no interruption in service.
And yes you _should_ have this check in CI, but there's no reason not to have defense in depth.