Skip to content

Commit

Permalink
chore: remove experimental warning for bentoml.metrics (#3725)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm authored Mar 28, 2023
1 parent 337b446 commit 05a45a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/bentoml/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from simple_di import inject
from simple_di import Provide

from ._internal.utils import warn_experimental
from ._internal.utils import add_experimental_docstring
from ._internal.configuration.containers import BentoMLContainer

if TYPE_CHECKING:
Expand Down Expand Up @@ -387,7 +385,6 @@ def __init__(self, attr: str, docstring: str | None = None):
self._args: tuple[t.Any, ...] = ()
self._kwargs: dict[str, t.Any] = {}

@add_experimental_docstring
def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any:
"""
Lazily initialize the metrics object.
Expand All @@ -400,7 +397,6 @@ def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any:
raise ValueError(
f"'registry' should not be passed when using '{__name__}.{self._attr}'. See https://docs.bentoml.org/en/latest/reference/metrics.html."
)
warn_experimental("%s.%s" % (__name__, self._attr))
self._args = args
self._kwargs = kwargs
if self._attr in _INTERNAL_FN_IMPL:
Expand Down

0 comments on commit 05a45a5

Please sign in to comment.