mirror of
https://github.com/vale981/ray
synced 2025-03-09 21:06:39 -04:00

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.
12 lines
294 B
Python
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
|