From 8f848ac5c255006c92637b9aa9c6dacbc5d0c69a Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 14:44:06 +0000 Subject: [PATCH] Fix lint and MRO issues in Pydantic compatibility tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove unused pytest import to fix lint error - Change inheritance order to FlowTrackable, BaseModel to fix MRO error - Follows same pattern as LiteAgent and Crew classes in codebase Co-Authored-By: João --- tests/test_pydantic_compatibility.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_pydantic_compatibility.py b/tests/test_pydantic_compatibility.py index 7b01db108..5e06e0b0d 100644 --- a/tests/test_pydantic_compatibility.py +++ b/tests/test_pydantic_compatibility.py @@ -1,6 +1,5 @@ """Tests for Pydantic version compatibility issues.""" -import pytest from unittest.mock import patch, MagicMock from pydantic import BaseModel @@ -8,7 +7,7 @@ from crewai.flow.flow_trackable import FlowTrackable from crewai.flow import Flow -class TestFlowTrackable(BaseModel, FlowTrackable): +class TestFlowTrackable(FlowTrackable, BaseModel): """Test class that inherits from FlowTrackable for testing.""" name: str = "test"