Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 2854611

Browse files
authored
Remove experimental internal function warning (#209)
1 parent 575d218 commit 2854611

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

python/coglet/scope.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import contextvars
22
import sys
3-
import warnings
43
from collections import defaultdict
54
from typing import Any, Callable, Dict, Optional
65

7-
from coglet import api
8-
96
ctx_pid: contextvars.ContextVar[Optional[str]] = contextvars.ContextVar(
107
'pid', default=None
118
)
@@ -33,11 +30,6 @@ def context(self, value: Dict[str, Any]) -> None:
3330
# Compat: for internal model metrics
3431
# https://github.com/replicate/cog/blob/main/python/cog/server/scope.py
3532
def current_scope() -> Scope:
36-
warnings.warn(
37-
'current_scope is an experimental internal function. It may change or be removed without warning.',
38-
category=api.ExperimentalFeatureWarning,
39-
stacklevel=1,
40-
)
4133
pid = ctx_pid.get()
4234
assert pid is not None
4335
return Scope(pid)

0 commit comments

Comments
 (0)