Setup LSP and clear all lint
This commit is contained in:
39
lib/read.py
39
lib/read.py
@@ -1,42 +1,18 @@
|
||||
import json
|
||||
import re
|
||||
from typing import Any, Dict, List, Optional, cast
|
||||
|
||||
import requests
|
||||
from PyQt6.QtCore import (
|
||||
QFile,
|
||||
QIODeviceBase,
|
||||
QPoint,
|
||||
QRect,
|
||||
QResource,
|
||||
Qt,
|
||||
QTimer,
|
||||
QUrl,
|
||||
pyqtSignal,
|
||||
pyqtSlot,
|
||||
)
|
||||
from PyQt6.QtGui import (
|
||||
QBrush,
|
||||
QColor,
|
||||
QKeyEvent,
|
||||
QMouseEvent,
|
||||
QPainter,
|
||||
QPainterPath,
|
||||
QPaintEvent,
|
||||
QTextBlockFormat,
|
||||
QTextCharFormat,
|
||||
QTextCursor,
|
||||
QTextDocument,
|
||||
QTextListFormat,
|
||||
)
|
||||
from PyQt6.QtSql import QSqlDatabase, QSqlQuery, QSqlQueryModel
|
||||
from PyQt6.QtWidgets import QDialog, QPushButton, QTextEdit, QWidget
|
||||
from lib import query_error
|
||||
from PyQt6.QtCore import QPoint, QResource, Qt, QTimer, pyqtSignal, pyqtSlot
|
||||
from PyQt6.QtGui import (QBrush, QColor, QKeyEvent, QPainter, QPainterPath,
|
||||
QPaintEvent, QTextCharFormat, QTextCursor)
|
||||
from PyQt6.QtSql import QSqlQuery
|
||||
from PyQt6.QtWidgets import QDialog, QTextEdit, QWidget
|
||||
from ui.ReadDialog import Ui_ReadDialog
|
||||
|
||||
from lib.preferences import Preferences
|
||||
from lib.session import SessionDialog
|
||||
from lib.sounds import SoundOff
|
||||
from main import query_error
|
||||
from ui.ReadDialog import Ui_ReadDialog
|
||||
|
||||
|
||||
class ReadDialog(QDialog, Ui_ReadDialog):
|
||||
@@ -630,7 +606,6 @@ class ReadDialog(QDialog, Ui_ReadDialog):
|
||||
def scrollTo(self, position: int) -> None:
|
||||
cursor = self.paraEdit.textCursor()
|
||||
cursor.setPosition(position)
|
||||
rect = self.paraEdit.cursorRect(cursor)
|
||||
return
|
||||
|
||||
def savePosition(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user