test_new_rendering / trackio /context_vars.py
qgallouedec's picture
qgallouedec HF Staff
Upload folder using huggingface_hub
a914098 verified
Raw
History Blame Contribute Delete
562 Bytes
import contextvars
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from trackio.run import Run
current_run: contextvars.ContextVar["Run | None"] = contextvars.ContextVar(
"current_run", default=None
)
current_project: contextvars.ContextVar[str | None] = contextvars.ContextVar(
"current_project", default=None
)
current_server: contextvars.ContextVar[str | None] = contextvars.ContextVar(
"current_server", default=None
)
current_space_id: contextvars.ContextVar[str | None] = contextvars.ContextVar(
"current_space_id", default=None
)