-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Serve] add type hints for controller and backend_worker #10288
Merged
simon-mo
merged 24 commits into
ray-project:master
from
architkulkarni:serve-type-hints-all
Aug 27, 2020
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
fac557b
Add some monkeytype type hints
architkulkarni 1737b46
Manually clean up autogenerated type hints for api.py
architkulkarni c9a17fd
Added optional types
architkulkarni cadc974
merge from master
architkulkarni 898db81
travis format
architkulkarni 8d48a39
merge from master
architkulkarni 0994641
travis format
architkulkarni 4a07eb3
Removed binary files
architkulkarni f54d9ea
fix minor errors
architkulkarni 6ec1e7e
travis format
architkulkarni 080dab4
removed binary files again
architkulkarni 1f0d1dd
removed last binary file
architkulkarni 82d99d0
add type hints for controller, backend_worker
architkulkarni d81261b
fix type errors on running test_api
architkulkarni 5ea3642
Merge branch 'master' into serve-type-hints-all
architkulkarni a3fc043
travis format
architkulkarni eda50b8
Merge branch 'master' into serve-type-hints-all
architkulkarni 3b069b1
remove annotations import
architkulkarni cc0f07e
fix type errors
architkulkarni 2b6e3d0
import Optional, Coroutine
architkulkarni 720996a
revert Coroutine to Callable
architkulkarni 2851bf4
remove type hints from RayServeWrappedWorker
architkulkarni d197a7b
remove optional type from api init
architkulkarni de01cf3
re-add type hints in api, remove from controller
architkulkarni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is fine. I think cloudpickle only breaks for
Optional
in generated class likeRayServeWrappedWorker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, that makes sense. I forgot that the tests for the type hints for API were passing earlier. I'll revert this change