mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 10:33:16 +08:00
[docs] Fix args + kwargs instead of docstrings (#13068)
* functools wraps * Fix typo (functoools -> functools)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
from contextlib import contextmanager
|
||||
from functools import wraps
|
||||
|
||||
client_mode_enabled = os.environ.get("RAY_CLIENT_MODE", "0") == "1"
|
||||
|
||||
@@ -38,6 +39,7 @@ def client_mode_hook(func):
|
||||
"""
|
||||
from ray.experimental.client import ray
|
||||
|
||||
@wraps(func)
|
||||
def wrapper(*args, **kwargs):
|
||||
global _client_hook_enabled
|
||||
if client_mode_enabled and _client_hook_enabled:
|
||||
|
||||
Reference in New Issue
Block a user