Fix lint errors: remove unused imports

- Remove unused typing.Optional import
- Remove unused unittest.mock.MagicMock import
- Add noqa comment for necessary mlflow import in availability check

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-08-12 16:28:15 +00:00
parent e0bb53d7d6
commit 2c00f17bf6
2 changed files with 2 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
"""MLFlow integration utilities for CrewAI."""
import logging
from typing import Optional
logger = logging.getLogger(__name__)
@@ -9,7 +8,7 @@ logger = logging.getLogger(__name__)
def is_mlflow_available() -> bool:
"""Check if MLFlow is available."""
try:
import mlflow
import mlflow # noqa: F401
return True
except ImportError:
return False

View File

@@ -1,7 +1,7 @@
"""Tests for MLFlow integration."""
import pytest
from unittest.mock import Mock, patch, MagicMock
from unittest.mock import Mock, patch
import sys