2021.11 #50

Merged
edraft merged 10 commits from 2021.11 into master 2021-11-30 12:03:04 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 3523dbd5c5 - Show all commits

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