Reorder imports

This commit is contained in:
henri123lemoine
2023-06-27 07:50:16 -04:00
parent 67f0dafd14
commit 0ec3a8f5e4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,8 +1,8 @@
# dataset/pinecone_db_handler.py
import os
import json
import pinecone
import os
from .settings import PINECONE_INDEX_NAME, PINECONE_VALUES_DIMS, PINECONE_METRIC, PINECONE_METADATA_ENTRIES
+2 -2
View File
@@ -1,7 +1,7 @@
# dataset/sql_db_handler.py
from typing import List, Dict, Union
import sqlite3
from typing import List, Dict, Any
from .settings import SQL_DB_PATH
@@ -52,7 +52,7 @@ class SQLDB:
except sqlite3.Error as e:
logger.error(f"The error '{e}' occurred.")
def upsert_entry(self, entry: Dict[str, Any]) -> bool:
def upsert_entry(self, entry: Dict[str, Union[str, list]]) -> bool:
with sqlite3.connect(self.db_name) as conn:
cursor = conn.cursor()
try: