News for hackers. Stuff that matters.
Re:Typeguard by funerr on Friday July 29, 2022 @07:00AM (#32275429)
When would you do the switch to mypy and why?
Re:Typeguard by mejutoco on Friday July 29, 2022 @08:02AM (#32275844)
In addition to performance, I would switch when the idea is to have the whole codebase, or a specific part of it, typechecked at "compile time". This way it can be part of a ci pipeline or a precommit hook, instead of blowing up with a good descriptive error (typeguard) but at runtime.
Re:Typeguard by withakay on Friday July 29, 2022 @07:20AM (#32275553)
Typeguard has a performance hit as it runs at runtime, on the other hand it provides better type safety than mypy.