mirror of
https://github.com/wassname/ray.git
synced 2026-07-17 11:32:33 +08:00
Fix the problem that ray.remote reference is not visible at a document. (#7311)
This commit is contained in:
@@ -65,17 +65,6 @@ sys.path.insert(0, os.path.abspath("../../python/"))
|
||||
|
||||
import ray
|
||||
|
||||
|
||||
# Avoid @ray.remote run when doc generating
|
||||
def fake_remote(*args, **kwargs):
|
||||
def _inner_wrapper(cls_or_func):
|
||||
return cls_or_func
|
||||
|
||||
return _inner_wrapper
|
||||
|
||||
|
||||
ray.remote = fake_remote
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
|
||||
Reference in New Issue
Block a user