[SciPy-Dev] Static Typing
Roman Yurchak
rth.yurchak at gmail.com
Wed Jun 30 15:59:56 EDT 2021
On 30/06/2021 20:06, Stefan van der Walt wrote:
> There have been some studies in JavaScript land that give rough metrics like "1/6 bugs could have been identified with typing" [0]. But then you see the Flask team annotating their entire project and finding almost none; probably because in Python we tend to test differently.
It likely also depends on the number and type of bugs that are there in
the first place. If one takes an arbitrary notebook or weakly tested
code it would probably find more.
Though indeed it would be good to have some quantifiable measurement of
how useful typing is to downstream users.
Roman
More information about the SciPy-Dev
mailing list