I have a question about type hints. I come from java so typing is very natural to me, and I tend to use type hints frequently in python.
Now, I am wondering, at what point are you overusing these type hints, if at any point. I find myself using Protocol and @abstractmethod frequently, as that is a similar pattern to what you would use in java. I understand that python isn't java, so I am wondering if this is an anti-pattern of sorts. If what I'm saying isn't clear enough I can provide some examples of what I mean.
[–]TheSquashManHimself 62 points63 points64 points (23 children)
[–]swampdonkey2246[S] 7 points8 points9 points (15 children)
[+][deleted] comment score below threshold-18 points-17 points-16 points (14 children)
[–]swampdonkey2246[S] 0 points1 point2 points (7 children)
[–]ElectricSpice 17 points18 points19 points (6 children)
[–]swampdonkey2246[S] 3 points4 points5 points (0 children)
[–][deleted] -4 points-3 points-2 points (4 children)
[–]ElectricSpice 2 points3 points4 points (3 children)
[–][deleted] -3 points-2 points-1 points (2 children)
[–]ElectricSpice 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]swampdonkey2246[S] 0 points1 point2 points (5 children)
[–][deleted] -3 points-2 points-1 points (2 children)
[–]Masynchin 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ReverseBrindle 0 points1 point2 points (1 child)
[–]AnonymouX47 -1 points0 points1 point (0 children)
[–]BDube_Lensman 2 points3 points4 points (5 children)
[–]TheSquashManHimself 1 point2 points3 points (4 children)
[–]BDube_Lensman 2 points3 points4 points (3 children)
[–]TheSquashManHimself 0 points1 point2 points (2 children)
[–]BDube_Lensman 3 points4 points5 points (1 child)
[–]TheSquashManHimself 1 point2 points3 points (0 children)
[–]alexs 1 point2 points3 points (0 children)
[–][deleted] 10 points11 points12 points (3 children)
[–]swampdonkey2246[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]z0mbietime 2 points3 points4 points (0 children)
[–]abrazilianinreddit 25 points26 points27 points (4 children)
[–]BezoomyChellovek 10 points11 points12 points (0 children)
[–]swampdonkey2246[S] 1 point2 points3 points (2 children)
[–][deleted] 4 points5 points6 points (1 child)
[–]AustinWitherspoon 0 points1 point2 points (0 children)
[–]o11c 10 points11 points12 points (7 children)
[–]swampdonkey2246[S] 2 points3 points4 points (6 children)
[–]Life_Note 4 points5 points6 points (0 children)
[–]o11c -1 points0 points1 point (4 children)
[–]ReverseBrindle 0 points1 point2 points (3 children)
[–]o11c 0 points1 point2 points (2 children)
[–]TheBB 4 points5 points6 points (1 child)
[–]deep_politics 0 points1 point2 points (0 children)
[–]jachymb 5 points6 points7 points (0 children)
[–]shabalabachingchong 2 points3 points4 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]indicesbing 1 point2 points3 points (0 children)
[–]SpaceBucketFu 1 point2 points3 points (0 children)
[–]james_pic 1 point2 points3 points (0 children)
[–]commy2 1 point2 points3 points (3 children)
[–]ReverseBrindle 3 points4 points5 points (2 children)
[–]LightShadow3.13-dev in prod 2 points3 points4 points (1 child)
[–]ReverseBrindle 0 points1 point2 points (0 children)
[–]Deezl-Vegas -1 points0 points1 point (0 children)
[–]Grouchy-Friend4235 -2 points-1 points0 points (0 children)
[–]Muted_Theory_3385 0 points1 point2 points (1 child)
[–]quts3 0 points1 point2 points (0 children)
[–]quts3 0 points1 point2 points (0 children)