ray/python/ray/types.py
Eric Liang 43aa2299e6
[api] Annotate as public / move ray-core APIs to _private and add enforcement rule (#25695)
Enable checking of the ray core module, excluding serve, workflows, and tune, in ./ci/lint/check_api_annotations.py. This required moving many files to ray._private and associated fixes.
2022-06-21 15:13:29 -07:00

12 lines
294 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.
@PublicAPI
class ObjectRef(Generic[T]):
pass