Change typehint callback to callable