fixed type hinting for callables.