chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from typing import Generic, TypeVar
|
||||
|
||||
from ray.util.annotations import PublicAPI
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
# TODO(ekl) this is a dummy generic ref type for documentation purposes only.
|
||||
# We should try to make the Cython ray.ObjectRef properly generic.
|
||||
# NOTE(sang): Looks like using Generic in Cython is not currently possible.
|
||||
# We should update Cython > 3.0 for this.
|
||||
@PublicAPI
|
||||
class ObjectRef(Generic[T]):
|
||||
pass
|
||||
Reference in New Issue
Block a user