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