mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-14 18:48:29 +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:
@@ -1,4 +1,9 @@
|
||||
from typing import TYPE_CHECKING, Any, Dict, Optional, Self
|
||||
import sys
|
||||
if sys.version_info < (3, 11):
|
||||
from typing_extensions import Self
|
||||
from typing import TYPE_CHECKING, Any, Dict, Optional
|
||||
else:
|
||||
from typing import TYPE_CHECKING, Any, Dict, Optional, Self
|
||||
|
||||
from crewai.memory.external.external_memory_item import ExternalMemoryItem
|
||||
from crewai.memory.memory import Memory
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
from typing import Any, Dict, List, Optional, Self
|
||||
import sys
|
||||
if sys.version_info < (3, 11):
|
||||
from typing_extensions import Self
|
||||
from typing import Any, Dict, List, Optional
|
||||
else:
|
||||
from typing import Any, Dict, List, Optional, Self
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user