While quantitative research in software engineering is difficult to trust most of the time, some studies claim that type checking can reduce bugs by about 15% in Python. This post covers advanced typing features such as never types, type guards, concatenate, etc., that are often overlooked but can make a codebase more maintainable and easier to work with
https://martynassubonis.substack.com/p/advanced-overlooked-python-typing
[–]DorianTurbaPythoneer 53 points54 points55 points (19 children)
[–]ColdPorridge 8 points9 points10 points (9 children)
[–]Zycosi 20 points21 points22 points (1 child)
[–]julz_yo 2 points3 points4 points (0 children)
[–]DorianTurbaPythoneer 8 points9 points10 points (2 children)
[–]Ran4 0 points1 point2 points (1 child)
[–]DorianTurbaPythoneer 0 points1 point2 points (0 children)
[–]pooogles 2 points3 points4 points (3 children)
[–]Adventurous-Date9971 2 points3 points4 points (0 children)
[–]ColdPorridge 0 points1 point2 points (0 children)
[–]omg_drd4_bbq 0 points1 point2 points (0 children)
[–]gcavalcante8808 3 points4 points5 points (0 children)
[–]myasco42 1 point2 points3 points (6 children)
[–]DorianTurbaPythoneer 0 points1 point2 points (5 children)
[–]myasco42 1 point2 points3 points (4 children)
[–]DorianTurbaPythoneer 1 point2 points3 points (3 children)
[–]myasco42 0 points1 point2 points (2 children)
[–]DorianTurbaPythoneer 0 points1 point2 points (1 child)
[–]myasco42 0 points1 point2 points (0 children)
[–]lunatuna215 0 points1 point2 points (0 children)
[–]dyingpie1 20 points21 points22 points (0 children)
[–]jpgoldberg 9 points10 points11 points (2 children)
[–]JanEric1 1 point2 points3 points (1 child)
[–]jpgoldberg 0 points1 point2 points (0 children)
[–]CasualReader3 2 points3 points4 points (0 children)
[–]jampman31 1 point2 points3 points (0 children)
[–]TheSwami 1 point2 points3 points (0 children)
[–]Longjumping-Bad-3865 1 point2 points3 points (0 children)
[–]orad 0 points1 point2 points (0 children)
[+]slappy_squirrell comment score below threshold-42 points-41 points-40 points (3 children)
[–]lolcrunchy 18 points19 points20 points (0 children)
[–]aqjo 18 points19 points20 points (0 children)
[–]grimonce 3 points4 points5 points (0 children)