mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-16 04:18:35 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user