More linting
This commit is contained in:
@@ -33,21 +33,18 @@ class Entries(db.Entity): # type: ignore[name-defined]
|
||||
text = Required(LongStr)
|
||||
documents = Set("Documents")
|
||||
|
||||
|
||||
class Documents(db.Entity): # type: ignore[name-defined]
|
||||
document_id = PrimaryKey(int, auto=True)
|
||||
entry_id = Required(Entries)
|
||||
name = Required(str)
|
||||
url = Required(LongStr)
|
||||
|
||||
|
||||
class History(db.Entity): # type: ignore[name-defined]
|
||||
history_id = PrimaryKey(int, auto=True)
|
||||
year = Required(str, max_len=3)
|
||||
edocket = Required(bool)
|
||||
number = Required(int)
|
||||
|
||||
|
||||
def updateDatabase(settings: QSettings) -> None:
|
||||
set_sql_debug(True)
|
||||
engine = settings.value("engine")
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
from typing import NoReturn, cast
|
||||
from typing import NoReturn
|
||||
|
||||
from PySide6.QtCore import (
|
||||
QByteArray,
|
||||
QCoreApplication,
|
||||
QObject,
|
||||
QRect,
|
||||
QSettings,
|
||||
Signal,
|
||||
)
|
||||
from PySide6.QtGui import QColor, QFont
|
||||
from PySide6.QtSql import QSqlQuery
|
||||
|
||||
Reference in New Issue
Block a user