Template hooks inheritance

Template hooks are defined like this apparently:

template_setting: "hook:core_hook_name:extra_params"

It seems that it looks for a file core/hooks/core_hook_name.py.

But what about having inheritance between template hooks? How can it be achieved?