mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
fix: use typing_extensions.Self for Python 3.10 compatibility
- Replace try/except import block with direct typing_extensions import - Follows same pattern as other files in codebase - Resolves mypy type-checker failures on Python 3.10 Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -9,10 +9,7 @@ from typing import (
|
||||
get_origin,
|
||||
)
|
||||
|
||||
try:
|
||||
from typing import Self
|
||||
except ImportError:
|
||||
from typing_extensions import Self
|
||||
from typing_extensions import Self
|
||||
|
||||
from pydantic import (
|
||||
UUID4,
|
||||
|
||||
Reference in New Issue
Block a user