From e73298aea24ab18a57ee8718303e94bb5040b18a Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 31 Jan 2024 22:24:29 +1100 Subject: [PATCH] tidy(item_storage): remove extraneous class attribute declarations --- .../app/services/item_storage/item_storage_sqlite.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/invokeai/app/services/item_storage/item_storage_sqlite.py b/invokeai/app/services/item_storage/item_storage_sqlite.py index 99df5486a4..114b1d9274 100644 --- a/invokeai/app/services/item_storage/item_storage_sqlite.py +++ b/invokeai/app/services/item_storage/item_storage_sqlite.py @@ -1,5 +1,3 @@ -import sqlite3 -import threading from typing import Generic, Optional, TypeVar, get_args from pydantic import BaseModel, TypeAdapter @@ -12,13 +10,6 @@ T = TypeVar("T", bound=BaseModel) class SqliteItemStorage(ItemStorageABC, Generic[T]): - _table_name: str - _conn: sqlite3.Connection - _cursor: sqlite3.Cursor - _id_field: str - _lock: threading.RLock - _validator: Optional[TypeAdapter[T]] - def __init__(self, db: SqliteDatabase, table_name: str, id_field: str = "id"): super().__init__()