Fixed all pep8 warnings

This commit is contained in:
2024-01-21 22:22:29 +00:00
parent 44c1ee03ba
commit bca3b0a663
14 changed files with 64 additions and 43 deletions

View File

@@ -17,8 +17,8 @@ class DatabaseController(ABC):
def __init__(self):
self._conn = None
try:
# Creates a connection and specifies a flag to parse all types back down into
# Python declared types e.g. date & time
# Creates a connection and specifies a flag to parse all types
# back down into Python declared types e.g. date & time
self._conn = sqlite3.connect(
self.__sqlitefile, detect_types=sqlite3.PARSE_DECLTYPES)
except sqlite3.Error as e:
@@ -28,10 +28,10 @@ class DatabaseController(ABC):
print(e)
def __del__(self):
if self._conn != None:
if self._conn is not None:
self._conn.close()
""" Takes a dictionary of fields and returns the object
""" Takes a dictionary of fields and returns the object
with those fields populated """
def new_instance(self, of: type, with_fields: Mapping[str, Any]):