Basic handling of callable returns
Summary:
This diff adds support for
1. inferring shape types at return type hints,
2. handling returns with no expressions,
3. and emitting codemoding directives for returns.
We generate subset constraints from the return expression entities into the unique return entity stored in the environment.
The treatment is incomplete in case of multiple returns that will come in a different diff. See T125884349.
Differential Revision:
D37787587
fbshipit-source-id:
e90fdf784418ec6eb1a81670f506d8241a780748