I'm not aware much on Python so can not confirm about it but coming to the OOPs part, it is not exactly inheritance. Inheritance is where we get pass the parent traits to child and also enhance them.
HoF is more to do with function compositions. You create function compose to another, the the output can be composed to another one, and so on.
So, is HOF is the same concept as Decorator as in python?
And if it's OOP, can this be called some kind of inheritance?
I'm not aware much on Python so can not confirm about it but coming to the OOPs part, it is not exactly inheritance. Inheritance is where we get pass the parent traits to child and also enhance them.
HoF is more to do with function compositions. You create function compose to another, the the output can be composed to another one, and so on.
JS has landed not that long ago decorators for OOP (mostly) like Python does.