From 72fd866dc3f6f86a2f1bd206293a8a853586c435 Mon Sep 17 00:00:00 2001 From: Greyson Lalonde Date: Tue, 5 May 2026 23:06:48 +0800 Subject: [PATCH] fix(cli): drop premature DeprecationWarning from new shared.token_manager shim --- lib/cli/src/crewai_cli/shared/token_manager.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/lib/cli/src/crewai_cli/shared/token_manager.py b/lib/cli/src/crewai_cli/shared/token_manager.py index aeac1b77b..d9f77999a 100644 --- a/lib/cli/src/crewai_cli/shared/token_manager.py +++ b/lib/cli/src/crewai_cli/shared/token_manager.py @@ -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, -)