Hi there! I think this is a known issue when you try to combine mypy, remote
and options
. You can read more about the discussion here:
- [Core] mypy failure when `.options(...)` is used on functions decorated with `@ray.remote` · Issue #47329 · ray-project/ray · GitHub although it seems a fixed was merged in here [Core] Add options(...) function to @ray.remote stubs by milesvant · Pull Request #47330 · ray-project/ray · GitHub
I think you can try doing something like this to help?
What version of Ray are you running?