Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mypy error: Module "ray" does not explicitly export attribute "re…
…mote" (#36334) (#36356) #34730 changed `__all__` in `__init__.py` to a computed list. mypy doesn't support this. Reverting it back to a literal list to fix this issue. Repro: `mypy --strict --follow-imports=skip --ignore-missing-imports 1.py` ```python # 1.py import ray @ray.remote def foo() -> None: pass ``` Note, the reason why CI didn't catch this issue is because we don't enable strict mode, see [here](https://github.com/ray-project/ray/blob/407062499038344b0f3edb54b2c7985c3320d1ec/ci/lint/format.sh#L135). Currently we have too many issues if enabling strict mode. Signed-off-by: Hao Chen <chenh1024@gmail.com>
- Loading branch information