Skip to content

Commit ba36c0c

Browse files
fix: import Self from typing_extensions for Python 3.10
1 parent 64b3f36 commit ba36c0c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/crewai/lite_agent.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
get_origin,
1010
)
1111

12-
try:
13-
from typing import Self
14-
except ImportError:
15-
from typing_extensions import Self
16-
1712
from pydantic import (
1813
UUID4,
1914
BaseModel,
@@ -23,6 +18,7 @@
2318
field_validator,
2419
model_validator,
2520
)
21+
from typing_extensions import Self
2622

2723
from crewai.agents.agent_builder.base_agent import BaseAgent
2824
from crewai.agents.agent_builder.utilities.base_token_process import TokenProcess

0 commit comments

Comments
 (0)