mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-21 13:58:15 +00:00
Fix: Import Self from typing_extensions for Python 3.10 compatibility (#2563)
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -13,3 +13,14 @@ def test_crew_output_import():
|
||||
from crewai import CrewOutput
|
||||
|
||||
assert CrewOutput is not None
|
||||
|
||||
|
||||
def test_memory_imports():
|
||||
"""Test that memory imports work correctly across Python versions."""
|
||||
import importlib
|
||||
importlib.import_module("crewai.memory.memory")
|
||||
importlib.import_module("crewai.memory.external.external_memory")
|
||||
|
||||
from crewai.memory.memory import Memory
|
||||
|
||||
assert hasattr(Memory, "set_crew")
|
||||
|
||||
Reference in New Issue
Block a user