Move os import to top-level imports

- Follow Python best practices by placing import at module level
- Remove redundant inline import from __init__ method

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-11-19 07:37:06 +00:00
parent 1d95940aca
commit 5c39e9c444

View File

@@ -1,6 +1,7 @@
from __future__ import annotations from __future__ import annotations
import logging import logging
import os
import traceback import traceback
from typing import TYPE_CHECKING, Any, cast from typing import TYPE_CHECKING, Any, cast
import warnings import warnings
@@ -49,7 +50,6 @@ class RAGStorage(BaseRAGStorage):
self.allow_reset = allow_reset self.allow_reset = allow_reset
if path and path.strip(): if path and path.strip():
import os
self.path = os.path.abspath(path.strip()) self.path = os.path.abspath(path.strip())
else: else:
self.path = None self.path = None