Files
ray-project--ray/python/ray/types.py
T
2026-07-13 13:17:40 +08:00

15 lines
412 B
Python

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