Fix mypy error: Module "ray" does not explicitly export attribute "remote" (#36334) (#36356)

Fix mypy error: Module "ray" does not explicitly export attribute "remote" (#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>

АвторHao Chen
КоммитерGitHub
2 года назад
a03efd9
Родители

GPG верификация

Статус: Неверифицирован

Причина: Не найден публичный ключ

ID ключа: 4aee18f83afdeb23

Cherry-pick

Команда cherry-pick позволяет выбрать отдельные коммиты из одной ветки и применить их к другой.