mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 07:42:40 +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