Fix the problem that ray.remote reference is not visible at a document. (#7311)

This commit is contained in:
SangBin Cho 2020-02-28 14:03:08 -08:00 committed by GitHub
parent fb73d51d4d
commit 50145e668d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.