[serve] add result(...) to DeploymentResponseGenerator to fix static typing
Description
This PR adds a dummy .result() API to DeploymentResponseGenerator`.
DeploymentResponseGenerator currently doesn't support .result(), however when calling .remote() on a DeploymentHandle, the return type is a Union of DeploymentResponseGenerator and DeploymentResponse. Meaning if .result() is on the object, a typing error is raised.
Example error without this PR:
Related issues
fixes https://github.com/ray-project/ray/issues/52493
Additional information
Optional: Add implementation details, API changes, usage examples, screenshots, etc.
This pull request has been automatically marked as stale because it has not had any activity for 14 days. It will be closed in another 14 days if no further activity occurs. Thank you for your contributions.
You can always ask for help on our discussion forum or Ray's public slack channel.
If you'd like to keep this open, just leave any comment, and the stale label will be removed.
please fix the premerge
looking into docs error