Added type hinting for callables