Repository navigation
[core] Type-annotate untyped Core API signatures so their parameters can be documented - #67636
Merged
dstrodtman merged 4 commits intoNov 3, 2026
Merged
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
dstrodtman
force-pushed
the
doc-1919-core-type-hints
branch
from
October 30, 2026 19:01
12784d0 to
a411466
Compare
dstrodtman
requested review from
andrewsykim,
edoakes and
ryanaoleary
as code owners
October 30, 2026 19:01
dstrodtman
changed the base branch from
doc-1919-core-runtime-env-docstrings
to
doc-1919-core-util-docstrings
October 30, 2026 19:01
MortalHappiness
approved these changes
Oct 31, 2026
…can be documented @rtd-build Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
…pu.dispatch @rtd-build Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
…_context xref The new cause: BaseException annotation made mypy reject returning result.cause as Optional[ActorDiedError], so bind the cause and narrow it directly. Point the RuntimeContext docstring at the documented name, ray.runtime_context.get_runtime_context. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Both methods always raise NotImplementedError. The error message and docstring now name ray.cancel as the way to stop a generator task. Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman
force-pushed
the
doc-1919-core-util-docstrings
branch
from
November 2, 2026 20:06
da2c350 to
27b0432
Compare
dstrodtman
requested review from
MengjinYan,
alimaazamat,
marosset and
richardliaw
as code owners
November 2, 2026 20:06
dstrodtman
force-pushed
the
doc-1919-core-type-hints
branch
from
November 2, 2026 20:06
40909ba to
bd820ab
Compare
ryanaoleary
approved these changes
Nov 3, 2026
dstrodtman
added a commit
that referenced
this pull request
Nov 3, 2026
…can be documented (#67636) ## Summary Adds type hints to public Ray Core signatures that have none, and documents their parameters in the same change. Ray's pydoclint config rejects an `Args:` section until every parameter has a type hint, so these symbols couldn't be documented in the docstring-only PRs. This PR also corrects five return annotations that didn't match what the functions return, and documents `ray.util.tpu.dispatch`. This PR is stacked on #67635, which is stacked on #67634. Those two PRs document the rest of these files. Review only the top two commits. It isn't labeled `docstring-only`, because the signatures change, so it runs the full Core premerge. ## What changes Type hints and docstrings: - `ObjectRefGenerator.send`, `throw`, `asend`, and `athrow`: `value: Any`. Each method only raises `NotImplementedError`, and the docstrings say so. - `RayError.from_bytes(b: bytes) -> BaseException` and `from_ray_exception(ray_exception: RayException) -> BaseException`. - The constructors of `CrossLanguageError`, `RayTaskError`, `RaySystemError`, `OutOfMemoryError`, and `NodeDiedError`. - `RuntimeContext.__init__(worker: Any)`. The worker is either the global Ray worker or Ray Client's `_ClientWorkerPropertyAPI`, which emulates it, so `Any` is the honest hint without new imports. - `RuntimeEnv.get(name: str, default: Any = None, data_class: Optional[type] = None) -> Any` and `get_extension(key: str)`. Return annotations corrected to match the code: - `RuntimeEnv.has_conda`: `str` to `bool`. - `RuntimeEnv.conda_env_name` and `conda_config`: `str` to `Optional[str]`. Both return None when `conda` isn't set or has the other form. - `RuntimeEnv.py_container_run_options`: `List` to `Optional[List]`. It returns None when `container` isn't set. - `ray.util.list_named_actors`: `List[str]` to `Union[List[str], List[Dict[str, str]]]`. With `all_namespaces=True`, it returns dicts with `name` and `namespace` keys. Docstring only: - `ray.util.tpu.dispatch`, the deprecated alias of `run_on_slice`, gets `Args:` and `Returns:` sections. Adding `Returns:` makes pydoclint check `*args` and `**kwargs`, so they're documented too. CODEOWNERS assigns `util/tpu.py` to `@andrewsykim`, `@edoakes`, and `@ryanaoleary`, so this PR needs one of them in addition to ray-core. Type hints don't change runtime behavior. None of these files are in Ray's mypy hook. ## For reviewers These are worth a close read: - `RayTaskError.cause` is hinted `BaseException`, which matches what the task-execution path in `_raylet.pyx` and `CompiledDAG` pass. `actor_id` is the actor ID in hex, as `_raylet.pyx` computes it. - `RaySystemError.client_exc` is hinted `str`. The callers in `worker.py`, `serialization.py`, and `_raylet.pyx` pass a message string, despite the parameter name. - `RayError.from_bytes` and `from_ray_exception` return `BaseException`: an unpickled exception, an `UnserializableException`, or a `CrossLanguageError`. `ray.util.client.api.ClientAPI.list_named_actors` carries the same `List[str]` annotation for Ray Client. It isn't public API, so this PR leaves it alone. ## Duplicate check No open PR changes these signatures. I searched open PRs for the class and method names. ## Testing - The full pre-commit suite, including ruff, black, pydoclint, and the docstyle hook, on every changed file, including `util/__init__.py` and `util/tpu.py`: passed. - `uvx [email protected] check --select D212,D200,D210` on the changed files: passed. - A smoke test against the latest nightly wheel with the four changed files overlaid: a task error and an actor task error round-trip through `to_bytes` and `from_bytes`, `ray.get_runtime_context()` works in the driver and in an actor, the exception constructors format their messages, `RuntimeEnv.get`, `get_extension`, and the re-annotated accessors return what their annotations now say, and the streaming generator's `send`, `throw`, `asend`, and `athrow` raise `NotImplementedError`. - `python/ray/tests/unit/test_runtime_env.py` and `test_runtime_env_validation.py` against the same overlay: 96 passed, 12 failed. The same 12 fail with master's versions of the four files in the same environment, because the nightly wheel's commit and the copied test fixtures don't match this checkout, so none come from this change. - The commit carries an `@rtd-build` line, so the Read the Docs preview renders the changed docstrings. AI assistance (Claude Code) was used to prepare this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
edoakes
pushed a commit
that referenced
this pull request
Nov 3, 2026
… them, to Ray Core public APIs (#67635) ## Summary Documents the public Ray Core symbols that are still missing docstrings, `Args:` entries, or `Returns:` sections in `ray.util`, `ray.util.queue`, `ray.util.spark`, `ray.util.tpu`, `ray.experimental`, `ray.actor`, `ray.remote_function`, `ray.types`, `ray.exceptions`, `ray.runtime_env`, `ray.runtime_context`, and `ObjectRefGenerator`. Each docstring describes existing behavior, written from the code. Some of these symbols couldn't be documented without a signature change. Ray's pydoclint config rejects an `Args:` section until every parameter has a type hint, so this PR also adds type hints to the untyped public signatures it documents. It also corrects five return annotations that didn't match what the functions return. #67540 applied the ruff `D212` and `D200` auto-fixes to these files, and #67634 documented `ray.runtime_env`, `ray.exceptions`, and `ObjectRefGenerator`. Both are merged. This PR builds on them and has two commits: the docstring additions, then the type annotations. The second commit was reviewed as #67636, which merged into this branch instead of `master`. Because the signatures change, this PR isn't docstring-only and runs the full Core premerge. ## Docstrings - `ray.util.queue`: `Empty` and `Full` are documented, and `Queue.size`, `qsize`, `empty`, and `full` have `Returns:` sections. - `ray.util.list_named_actors` documents `all_namespaces` and returns, including the dict entries it returns when `all_namespaces` is True. - `ray.util.spark.setup_global_ray_cluster` documents all 17 parameters and what it returns. Most entries follow the matching `setup_ray_cluster` parameter, which the existing docstring already says they share, and point to it for defaults and caps. - `ray.util.tpu.dispatch`, the deprecated alias of `run_on_slice`, gets `Args:` and `Returns:` sections. Adding `Returns:` makes pydoclint check `*args` and `**kwargs`, so they're documented too. - `ray.experimental`: `CompiledDAGRef.get` and the `CompiledDAGFuture` constructor parameters, the `RayActorHandleResolver` constructor and its `get`, `forget`, `list_names`, and `kill` methods, and the `ReduceOp`, `AllGatherOp`, `AllReduceOp`, `ReduceScatterOp`, and `Device` types are documented. - `ActorMethod.__call__` and `remote`, `ActorClassInheritanceException`, `RemoteFunction.__call__`, and `ray.types.ObjectRef` have docstrings. ## Type hints Type hints added, with the parameters documented in the same change: - `ObjectRefGenerator.send`, `throw`, `asend`, and `athrow`: `value: Any`. Each method only raises `NotImplementedError`, and the docstrings say so. - `RayError.from_bytes(b: bytes) -> BaseException` and `from_ray_exception(ray_exception: RayException) -> BaseException`. - The constructors of `CrossLanguageError`, `RayTaskError`, `RaySystemError`, `OutOfMemoryError`, and `NodeDiedError`. - `RuntimeContext.__init__(worker: Any)`. The worker is either the global Ray worker or Ray Client's `_ClientWorkerPropertyAPI`, which emulates it, so `Any` is the honest hint without new imports. - `RuntimeEnv.get(name: str, default: Any = None, data_class: Optional[type] = None) -> Any` and `get_extension(key: str)`. Return annotations corrected to match the code: - `RuntimeEnv.has_conda`: `str` to `bool`. - `RuntimeEnv.conda_env_name` and `conda_config`: `str` to `Optional[str]`. Both return None when `conda` isn't set or has the other form. - `RuntimeEnv.py_container_run_options`: `List` to `Optional[List]`. It returns None when `container` isn't set. - `ray.util.list_named_actors`: `List[str]` to `Union[List[str], List[Dict[str, str]]]`. With `all_namespaces=True`, it returns dicts with `name` and `namespace` keys. `AsyncioRouter` in `python/ray/serve/_private/router.py` reads `RayTaskError.cause` into a local variable before the `ActorDiedError` check instead of calling `getattr` in the condition. It returns the same value in the same cases. Type hints don't change runtime behavior. None of these files are in Ray's mypy hook. ## For reviewers CODEOWNERS adds two reviewers beyond `@ray-project/ray-core`: `@ray-project/ray-serve` for `serve/_private/router.py`, and one of the individual owners of `util/tpu.py`. These are worth a close read: - `setup_global_ray_cluster` returns the `(address, remote_connection_address)` tuple only when `is_blocking` is False. When blocking, it returns None after the cluster shuts down. - `CompiledDAGRef.get` describes the `timeout` values from `CompiledDAG._execute_until`, which it calls. `ray.get()` on a CompiledDAGRef calls this method. - `Device` describes its members from the `device` argument of `TorchTensorType`. - `RayTaskError.cause` is hinted `BaseException`, which matches what the task-execution path in `_raylet.pyx` and `CompiledDAG` pass. `actor_id` is the actor ID in hex, as `_raylet.pyx` computes it. - `RaySystemError.client_exc` is hinted `str`. The callers in `worker.py`, `serialization.py`, and `_raylet.pyx` pass a message string, despite the parameter name. - `RayError.from_bytes` and `from_ray_exception` return `BaseException`: an unpickled exception, an `UnserializableException`, or a `CrossLanguageError`. `ray.util.client.api.ClientAPI.list_named_actors` has the same `List[str]` annotation for Ray Client. It isn't public API, so this PR leaves it alone. ## Duplicate check No open PR documents these symbols or changes these signatures. I searched open PRs for the module, class, and method names. #66745 converts the `Queue` class docstring example to doctest form, which doesn't overlap the lines this PR changes. ## Testing These checks ran on each commit before the rebase onto `master`. The rebase applied both commits unchanged. - The full pre-commit suite on every changed file, including ruff, black, pydoclint, and the docstyle hook: passed. - `uvx [email protected] check --select D212,D200,D210` on the changed files: passed. - The docstring commit passed `ci/ray_ci/doc/check_docstring_only.py`. The type-annotation commit changes signatures, so it's outside that guard by design. - A smoke test against the latest nightly wheel with the type-annotated files overlaid: a task error and an actor task error round-trip through `to_bytes` and `from_bytes`, `ray.get_runtime_context()` works in the driver and in an actor, the exception constructors format their messages, `RuntimeEnv.get`, `get_extension`, and the re-annotated accessors return what their annotations now say, and the streaming generator's `send`, `throw`, `asend`, and `athrow` raise `NotImplementedError`. - `python/ray/tests/unit/test_runtime_env.py` and `test_runtime_env_validation.py` against the same overlay: 96 passed, 12 failed. The same 12 fail with `master`'s versions of those files in the same environment, because the nightly wheel's commit and the copied test fixtures don't match this checkout, so none come from this change. - Both commits carry an `@rtd-build` line, so the Read the Docs preview renders the changed docstrings. AI assistance (Claude Code) was used to prepare this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
pawelbeza
pushed a commit
to pawelbeza/ray
that referenced
this pull request
Nov 9, 2026
… them, to Ray Core public APIs (ray-project#67635) ## Summary Documents the public Ray Core symbols that are still missing docstrings, `Args:` entries, or `Returns:` sections in `ray.util`, `ray.util.queue`, `ray.util.spark`, `ray.util.tpu`, `ray.experimental`, `ray.actor`, `ray.remote_function`, `ray.types`, `ray.exceptions`, `ray.runtime_env`, `ray.runtime_context`, and `ObjectRefGenerator`. Each docstring describes existing behavior, written from the code. Some of these symbols couldn't be documented without a signature change. Ray's pydoclint config rejects an `Args:` section until every parameter has a type hint, so this PR also adds type hints to the untyped public signatures it documents. It also corrects five return annotations that didn't match what the functions return. ray-project#67540 applied the ruff `D212` and `D200` auto-fixes to these files, and ray-project#67634 documented `ray.runtime_env`, `ray.exceptions`, and `ObjectRefGenerator`. Both are merged. This PR builds on them and has two commits: the docstring additions, then the type annotations. The second commit was reviewed as ray-project#67636, which merged into this branch instead of `master`. Because the signatures change, this PR isn't docstring-only and runs the full Core premerge. ## Docstrings - `ray.util.queue`: `Empty` and `Full` are documented, and `Queue.size`, `qsize`, `empty`, and `full` have `Returns:` sections. - `ray.util.list_named_actors` documents `all_namespaces` and returns, including the dict entries it returns when `all_namespaces` is True. - `ray.util.spark.setup_global_ray_cluster` documents all 17 parameters and what it returns. Most entries follow the matching `setup_ray_cluster` parameter, which the existing docstring already says they share, and point to it for defaults and caps. - `ray.util.tpu.dispatch`, the deprecated alias of `run_on_slice`, gets `Args:` and `Returns:` sections. Adding `Returns:` makes pydoclint check `*args` and `**kwargs`, so they're documented too. - `ray.experimental`: `CompiledDAGRef.get` and the `CompiledDAGFuture` constructor parameters, the `RayActorHandleResolver` constructor and its `get`, `forget`, `list_names`, and `kill` methods, and the `ReduceOp`, `AllGatherOp`, `AllReduceOp`, `ReduceScatterOp`, and `Device` types are documented. - `ActorMethod.__call__` and `remote`, `ActorClassInheritanceException`, `RemoteFunction.__call__`, and `ray.types.ObjectRef` have docstrings. ## Type hints Type hints added, with the parameters documented in the same change: - `ObjectRefGenerator.send`, `throw`, `asend`, and `athrow`: `value: Any`. Each method only raises `NotImplementedError`, and the docstrings say so. - `RayError.from_bytes(b: bytes) -> BaseException` and `from_ray_exception(ray_exception: RayException) -> BaseException`. - The constructors of `CrossLanguageError`, `RayTaskError`, `RaySystemError`, `OutOfMemoryError`, and `NodeDiedError`. - `RuntimeContext.__init__(worker: Any)`. The worker is either the global Ray worker or Ray Client's `_ClientWorkerPropertyAPI`, which emulates it, so `Any` is the honest hint without new imports. - `RuntimeEnv.get(name: str, default: Any = None, data_class: Optional[type] = None) -> Any` and `get_extension(key: str)`. Return annotations corrected to match the code: - `RuntimeEnv.has_conda`: `str` to `bool`. - `RuntimeEnv.conda_env_name` and `conda_config`: `str` to `Optional[str]`. Both return None when `conda` isn't set or has the other form. - `RuntimeEnv.py_container_run_options`: `List` to `Optional[List]`. It returns None when `container` isn't set. - `ray.util.list_named_actors`: `List[str]` to `Union[List[str], List[Dict[str, str]]]`. With `all_namespaces=True`, it returns dicts with `name` and `namespace` keys. `AsyncioRouter` in `python/ray/serve/_private/router.py` reads `RayTaskError.cause` into a local variable before the `ActorDiedError` check instead of calling `getattr` in the condition. It returns the same value in the same cases. Type hints don't change runtime behavior. None of these files are in Ray's mypy hook. ## For reviewers CODEOWNERS adds two reviewers beyond `@ray-project/ray-core`: `@ray-project/ray-serve` for `serve/_private/router.py`, and one of the individual owners of `util/tpu.py`. These are worth a close read: - `setup_global_ray_cluster` returns the `(address, remote_connection_address)` tuple only when `is_blocking` is False. When blocking, it returns None after the cluster shuts down. - `CompiledDAGRef.get` describes the `timeout` values from `CompiledDAG._execute_until`, which it calls. `ray.get()` on a CompiledDAGRef calls this method. - `Device` describes its members from the `device` argument of `TorchTensorType`. - `RayTaskError.cause` is hinted `BaseException`, which matches what the task-execution path in `_raylet.pyx` and `CompiledDAG` pass. `actor_id` is the actor ID in hex, as `_raylet.pyx` computes it. - `RaySystemError.client_exc` is hinted `str`. The callers in `worker.py`, `serialization.py`, and `_raylet.pyx` pass a message string, despite the parameter name. - `RayError.from_bytes` and `from_ray_exception` return `BaseException`: an unpickled exception, an `UnserializableException`, or a `CrossLanguageError`. `ray.util.client.api.ClientAPI.list_named_actors` has the same `List[str]` annotation for Ray Client. It isn't public API, so this PR leaves it alone. ## Duplicate check No open PR documents these symbols or changes these signatures. I searched open PRs for the module, class, and method names. ray-project#66745 converts the `Queue` class docstring example to doctest form, which doesn't overlap the lines this PR changes. ## Testing These checks ran on each commit before the rebase onto `master`. The rebase applied both commits unchanged. - The full pre-commit suite on every changed file, including ruff, black, pydoclint, and the docstyle hook: passed. - `uvx [email protected] check --select D212,D200,D210` on the changed files: passed. - The docstring commit passed `ci/ray_ci/doc/check_docstring_only.py`. The type-annotation commit changes signatures, so it's outside that guard by design. - A smoke test against the latest nightly wheel with the type-annotated files overlaid: a task error and an actor task error round-trip through `to_bytes` and `from_bytes`, `ray.get_runtime_context()` works in the driver and in an actor, the exception constructors format their messages, `RuntimeEnv.get`, `get_extension`, and the re-annotated accessors return what their annotations now say, and the streaming generator's `send`, `throw`, `asend`, and `athrow` raise `NotImplementedError`. - `python/ray/tests/unit/test_runtime_env.py` and `test_runtime_env_validation.py` against the same overlay: 96 passed, 12 failed. The same 12 fail with `master`'s versions of those files in the same environment, because the nightly wheel's commit and the copied test fixtures don't match this checkout, so none come from this change. - Both commits carry an `@rtd-build` line, so the Read the Docs preview renders the changed docstrings. AI assistance (Claude Code) was used to prepare this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Signed-off-by: Pawel Beza <[email protected]> Upstream-commit: 6357e3c (sandbox resolver only; unrelated API changes excluded) Co-authored-by: Copilot <[email protected]> Copilot-Session: 0baa3cf-af4e-472e-ad89-8f02c6e8be11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds type hints to public Ray Core signatures that have none, and documents their parameters in the same change. Ray's pydoclint config rejects an
Args:section until every parameter has a type hint, so these symbols couldn't be documented in the docstring-only PRs. This PR also corrects five return annotations that didn't match what the functions return, and documentsray.util.tpu.dispatch.This PR is stacked on #67635, which is stacked on #67634. Those two PRs document the rest of these files. Review only the top two commits. It isn't labeled
docstring-only, because the signatures change, so it runs the full Core premerge.What changes
Type hints and docstrings:
ObjectRefGenerator.send,throw,asend, andathrow:value: Any. Each method only raisesNotImplementedError, and the docstrings say so.RayError.from_bytes(b: bytes) -> BaseExceptionandfrom_ray_exception(ray_exception: RayException) -> BaseException.CrossLanguageError,RayTaskError,RaySystemError,OutOfMemoryError, andNodeDiedError.RuntimeContext.__init__(worker: Any). The worker is either the global Ray worker or Ray Client's_ClientWorkerPropertyAPI, which emulates it, soAnyis the honest hint without new imports.RuntimeEnv.get(name: str, default: Any = None, data_class: Optional[type] = None) -> Anyandget_extension(key: str).Return annotations corrected to match the code:
RuntimeEnv.has_conda:strtobool.RuntimeEnv.conda_env_nameandconda_config:strtoOptional[str]. Both return None whencondaisn't set or has the other form.RuntimeEnv.py_container_run_options:ListtoOptional[List]. It returns None whencontainerisn't set.ray.util.list_named_actors:List[str]toUnion[List[str], List[Dict[str, str]]]. Withall_namespaces=True, it returns dicts withnameandnamespacekeys.Docstring only:
ray.util.tpu.dispatch, the deprecated alias ofrun_on_slice, getsArgs:andReturns:sections. AddingReturns:makes pydoclint check*argsand**kwargs, so they're documented too. CODEOWNERS assignsutil/tpu.pyto@andrewsykim,@edoakes, and@ryanaoleary, so this PR needs one of them in addition to ray-core.Type hints don't change runtime behavior. None of these files are in Ray's mypy hook.
For reviewers
These are worth a close read:
RayTaskError.causeis hintedBaseException, which matches what the task-execution path in_raylet.pyxandCompiledDAGpass.actor_idis the actor ID in hex, as_raylet.pyxcomputes it.RaySystemError.client_excis hintedstr. The callers inworker.py,serialization.py, and_raylet.pyxpass a message string, despite the parameter name.RayError.from_bytesandfrom_ray_exceptionreturnBaseException: an unpickled exception, anUnserializableException, or aCrossLanguageError.ray.util.client.api.ClientAPI.list_named_actorscarries the sameList[str]annotation for Ray Client. It isn't public API, so this PR leaves it alone.Duplicate check
No open PR changes these signatures. I searched open PRs for the class and method names.
Testing
util/__init__.pyandutil/tpu.py: passed.uvx [email protected] check --select D212,D200,D210on the changed files: passed.to_bytesandfrom_bytes,ray.get_runtime_context()works in the driver and in an actor, the exception constructors format their messages,RuntimeEnv.get,get_extension, and the re-annotated accessors return what their annotations now say, and the streaming generator'ssend,throw,asend, andathrowraiseNotImplementedError.python/ray/tests/unit/test_runtime_env.pyandtest_runtime_env_validation.pyagainst the same overlay: 96 passed, 12 failed. The same 12 fail with master's versions of the four files in the same environment, because the nightly wheel's commit and the copied test fixtures don't match this checkout, so none come from this change.@rtd-buildline, so the Read the Docs preview renders the changed docstrings.AI assistance (Claude Code) was used to prepare this PR.
🤖 Generated with Claude Code