diff options
Diffstat (limited to 'qutebrowser/misc/nativeeventfilter.py')
-rw-r--r-- | qutebrowser/misc/nativeeventfilter.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qutebrowser/misc/nativeeventfilter.py b/qutebrowser/misc/nativeeventfilter.py index dad22ef7d..963baeea7 100644 --- a/qutebrowser/misc/nativeeventfilter.py +++ b/qutebrowser/misc/nativeeventfilter.py @@ -106,9 +106,9 @@ class xcb_query_extension_reply_t(ctypes.Structure): # noqa: N801 if machinery.IS_QT6: - _POINTER_RET_T = sip.voidptr + _PointerRetType = sip.voidptr else: - _POINTER_RET_T = int + _PointerRetType = int class NativeEventFilter(QAbstractNativeEventFilter): @@ -119,8 +119,8 @@ class NativeEventFilter(QAbstractNativeEventFilter): # # Tuple because PyQt uses the second value as the *result out-pointer, which # according to the Qt documentation is only used on Windows. - _PASS_EVENT_RET = (False, cast(_POINTER_RET_T, 0)) - _FILTER_EVENT_RET = (True, cast(_POINTER_RET_T, 0)) + _PASS_EVENT_RET = (False, cast(_PointerRetType, 0)) + _FILTER_EVENT_RET = (True, cast(_PointerRetType, 0)) def __init__(self) -> None: super().__init__() @@ -153,7 +153,7 @@ class NativeEventFilter(QAbstractNativeEventFilter): def nativeEventFilter( self, evtype: Union[bytes, QByteArray], message: sip.voidptr - ) -> Tuple[bool, _POINTER_RET_T]: + ) -> Tuple[bool, _PointerRetType]: """Handle XCB events.""" # We're only installed when the platform plugin is xcb assert evtype == b"xcb_generic_event_t", evtype |