How to type annotate reduce function?
How to type annotate reduce function? Question: I’m writing a very thin wrapper on top of list and I want to define a method called reduce, but I’m struggling to annotate it properly such that pylance, mypy & pylint cut their complaints whenever I use the method, or even define it. I was perturbed to …