From 402f45078a6bd46ed9707386fa31c9d902609c81 Mon Sep 17 00:00:00 2001 From: Renato Nitta Date: Mon, 20 Apr 2026 19:43:13 -0300 Subject: [PATCH] test: alias InternalCrew as type[Any] to satisfy analyzer --- lib/crewai/tests/test_project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/crewai/tests/test_project.py b/lib/crewai/tests/test_project.py index c0633dc40..bc433c2de 100644 --- a/lib/crewai/tests/test_project.py +++ b/lib/crewai/tests/test_project.py @@ -263,7 +263,8 @@ def test_crew_name(): def test_crew_decorator_propagates_class_name_to_instance(): """@crew-decorated factory method should set Crew.name to the decorated class name.""" - crew_instance: Crew = cast(Any, InternalCrew()).crew() + internal_crew_cls = cast(type[Any], InternalCrew) + crew_instance: Crew = cast(Any, internal_crew_cls()).crew() assert crew_instance.name == "InternalCrew"