Other two linters
This commit is contained in:
@@ -39,13 +39,14 @@ from enum import Enum, IntFlag
|
|||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
from PyQt6.QtCore import (
|
from PyQt6.QtCore import (
|
||||||
QObject, QPoint, QRegularExpression, QRunnable, Qt, QTimer, QVariant,
|
QObject, QPoint, QRegularExpression, QRunnable, Qt, QTimer, pyqtSignal,
|
||||||
pyqtSignal, pyqtSlot
|
pyqtSlot
|
||||||
)
|
)
|
||||||
from PyQt6.QtGui import (
|
from PyQt6.QtGui import (
|
||||||
QAction, QCursor, QDragEnterEvent, QDragMoveEvent, QDropEvent, QKeyEvent,
|
QAction, QCursor, QDragEnterEvent, QDragMoveEvent, QDropEvent,
|
||||||
QKeySequence, QInputMethodEvent, QMouseEvent, QPalette, QPixmap, QResizeEvent,
|
QInputMethodEvent, QKeyEvent, QKeySequence, QMouseEvent, QPalette, QPixmap,
|
||||||
QShortcut, QTextBlock, QTextCursor, QTextDocument, QTextOption,
|
QResizeEvent, QShortcut, QTextBlock, QTextCursor, QTextDocument,
|
||||||
|
QTextOption
|
||||||
)
|
)
|
||||||
from PyQt6.QtWidgets import (
|
from PyQt6.QtWidgets import (
|
||||||
QApplication, QFrame, QGridLayout, QHBoxLayout, QLabel, QLineEdit, QMenu,
|
QApplication, QFrame, QGridLayout, QHBoxLayout, QLabel, QLineEdit, QMenu,
|
||||||
@@ -1027,7 +1028,7 @@ class GuiDocEditor(QPlainTextEdit):
|
|||||||
pos = self.mapToGlobal(rect.bottomLeft())
|
pos = self.mapToGlobal(rect.bottomLeft())
|
||||||
self._completer.move(pos)
|
self._completer.move(pos)
|
||||||
|
|
||||||
def inputMethodQuery(self, query: Qt.InputMethodQuery) -> QVariant:
|
def inputMethodQuery(self, query: Qt.InputMethodQuery) -> object:
|
||||||
"""Adjust completion windows for CJK input methods to consider
|
"""Adjust completion windows for CJK input methods to consider
|
||||||
the viewport margins.
|
the viewport margins.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user