mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 08:38:30 +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,9 +9,6 @@ from typing import (
|
|||||||
get_origin,
|
get_origin,
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
|
||||||
from typing import Self
|
|
||||||
except ImportError:
|
|
||||||
from typing_extensions import Self
|
from typing_extensions import Self
|
||||||
|
|
||||||
from pydantic import (
|
from pydantic import (
|
||||||
|
|||||||
Reference in New Issue
Block a user