Fix lint errors: sort imports

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-03-21 05:15:54 +00:00
parent 13e1aa96de
commit 9fa65f724f
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
import os
import warnings
from typing import Any, Dict, Optional, cast, List, Union, Callable
from typing import Any, Callable, Dict, List, Optional, Union, cast
# Initialize with None to indicate module import status
CHROMADB_AVAILABLE = False
@@ -21,7 +21,9 @@ try:
from chromadb.api.types import Documents as ChromaDocuments
from chromadb.api.types import EmbeddingFunction as ChromaEmbeddingFunction
from chromadb.api.types import Embeddings as ChromaEmbeddings
from chromadb.utils import validate_embedding_function as chroma_validate_embedding_function
from chromadb.utils import (
validate_embedding_function as chroma_validate_embedding_function,
)
# Override our placeholder types with the real ones
Documents = ChromaDocuments

View File

@@ -1,8 +1,10 @@
import importlib
import pytest
import sys
import warnings
import pytest
def test_crew_import_with_numpy():
"""Test that crewai can be imported even with NumPy compatibility issues."""
try: