Re:Why type hinting sucks (/r/Python)
by Laaas on Saturday February 11, 2023 @06:49AM
(#34751511)
It seems to me that the author isn't comfortable with static typing. The obvious solution (which might be impossible in MyPy?) is to have a two-parameter type class (protocol in MyPy?) of the lhs and rhs, and have the output be of an associated type. That should cover almost all cases.
[ Parent
| on HN ]
There are no comments on this comment yet.