fix(cli): drop premature DeprecationWarning from new shared.token_manager shim

This commit is contained in:
Greyson Lalonde
2026-05-05 23:06:48 +08:00
parent e4747f407d
commit 72fd866dc3

View File

@@ -1,18 +1,12 @@
"""Deprecated: use ``crewai_core.token_manager`` instead."""
"""Re-export of ``crewai_core.token_manager.TokenManager``.
Kept as a stable import path for the CLI; new code should import from
``crewai_core.token_manager`` directly.
"""
from __future__ import annotations
import warnings
from crewai_core.token_manager import TokenManager as TokenManager
__all__ = ["TokenManager"]
warnings.warn(
"crewai_cli.shared.token_manager is deprecated; "
"import from crewai_core.token_manager.",
DeprecationWarning,
stacklevel=2,
)