From 5c39e9c444fe7c7a35a308b77ca0417b03d3654a Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 19 Nov 2025 07:37:06 +0000 Subject: [PATCH] Move os import to top-level imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Follow Python best practices by placing import at module level - Remove redundant inline import from __init__ method Co-Authored-By: João --- lib/crewai/src/crewai/memory/storage/rag_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crewai/src/crewai/memory/storage/rag_storage.py b/lib/crewai/src/crewai/memory/storage/rag_storage.py index d38a6896d..154d77a1b 100644 --- a/lib/crewai/src/crewai/memory/storage/rag_storage.py +++ b/lib/crewai/src/crewai/memory/storage/rag_storage.py @@ -1,6 +1,7 @@ from __future__ import annotations import logging +import os import traceback from typing import TYPE_CHECKING, Any, cast import warnings @@ -49,7 +50,6 @@ class RAGStorage(BaseRAGStorage): self.allow_reset = allow_reset if path and path.strip(): - import os self.path = os.path.abspath(path.strip()) else: self.path = None