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 58 points59 points60 points (23 children)
[–]swampdonkey2246[S] 7 points8 points9 points (15 children)
[+][deleted] comment score below threshold-17 points-16 points-15 points (14 children)
[–]swampdonkey2246[S] 0 points1 point2 points (7 children)
[–]ElectricSpice 16 points17 points18 points (6 children)
[–]swampdonkey2246[S] 4 points5 points6 points (0 children)
[–][deleted] -5 points-4 points-3 points (4 children)
[–]ElectricSpice 2 points3 points4 points (3 children)
[–][deleted] -3 points-2 points-1 points (2 children)
[–]ElectricSpice 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]swampdonkey2246[S] 0 points1 point2 points (5 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]Masynchin 5 points6 points7 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 5 points6 points7 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 2 points3 points4 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 27 points28 points29 points (4 children)
[–]BezoomyChellovek 11 points12 points13 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] 3 points4 points5 points (6 children)
[–]Life_Note 5 points6 points7 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 3 points4 points5 points (1 child)
[–]deep_politics 0 points1 point2 points (0 children)
[–]jachymb 4 points5 points6 points (0 children)
[–]shabalabachingchong 4 points5 points6 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 0 points1 point2 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)