mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 07:11:20 +08:00
[Core] Type check ObjectRef (#9856)
* Type check ObjectRef * Bug fix * Port typing tests to bazel test
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
from typing import Any, Awaitable
|
||||
from typing import Any, Awaitable, TypeVar
|
||||
|
||||
R = TypeVar("R")
|
||||
|
||||
|
||||
class ObjectRef(Awaitable[Any]):
|
||||
class ObjectRef(Awaitable[R]):
|
||||
pass
|
||||
|
||||
|
||||
class ObjectID(Awaitable[Any]):
|
||||
class ObjectID(Awaitable[R]):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user