Using code_typed to generate docstring templates

Yes, except its not a heuristic. It is only guaranteed the documented type works.