Linting
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from typing import Optional
|
from typing import Optional, cast
|
||||||
|
|
||||||
from PyQt6.QtCore import (
|
from PyQt6.QtCore import (
|
||||||
QCoreApplication,
|
QCoreApplication,
|
||||||
@@ -105,7 +105,8 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||||||
def addPerson(self) -> None:
|
def addPerson(self) -> None:
|
||||||
dlg = PersonDialog()
|
dlg = PersonDialog()
|
||||||
dlg.exec()
|
dlg.exec()
|
||||||
model = self.peopleView.model()
|
model = cast(QSqlQueryModel,self.peopleView.model())
|
||||||
|
assert model is not None
|
||||||
model.setQuery(model.query())
|
model.setQuery(model.query())
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user