mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-09 04:28:16 +00:00
fix: use typing_extensions.Self for Python 3.10 compat
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import logging
|
||||
import os
|
||||
from typing import Any, Self
|
||||
from typing import Any
|
||||
|
||||
|
||||
try:
|
||||
from typing import Self
|
||||
except ImportError:
|
||||
from typing_extensions import Self
|
||||
|
||||
from crewai.tools import BaseTool
|
||||
from pydantic import BaseModel, Field, model_validator
|
||||
|
||||
Reference in New Issue
Block a user