[Core] Type check ObjectRef (#9856)

* Type check ObjectRef

* Bug fix

* Port typing tests to bazel test
This commit is contained in:
Simon Mo
2020-08-11 10:38:29 -07:00
committed by GitHub
parent 98df612010
commit 4c52adddfa
8 changed files with 119 additions and 63 deletions
+5 -3
View File
@@ -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