Fix mock generated method signature with callable type hint

This PR fixes the generated mock class when one of its methods has a 'callable' type hint.