Improved typing

This commit is contained in:
Sven Heidemann 2021-11-30 11:12:13 +01:00
parent b526a07e19
commit 3523dbd5c5
2 changed files with 2 additions and 2 deletions

View File

@ -39,6 +39,6 @@ class DatabaseContext(DatabaseContextABC):
def save_changes(self):
self._db.server.commit()
def select(self, statement: str) -> list:
def select(self, statement: str) -> list[tuple]:
self._db.cursor.execute(statement)
return self._db.cursor.fetchall()

View File

@ -31,7 +31,7 @@ class DatabaseContextABC(ABC):
pass
@abstractmethod
def select(self, statement: str) -> list:
def select(self, statement: str) -> list[tuple]:
r"""Runs SQL Statements
Parameter