mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-06 01:32:36 +00:00
fix(cli): drop premature DeprecationWarning from new shared.token_manager shim
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user