summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/webengine/notification.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/browser/webengine/notification.py')
-rw-r--r--qutebrowser/browser/webengine/notification.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/qutebrowser/browser/webengine/notification.py b/qutebrowser/browser/webengine/notification.py
index f5c9fb92e..ba00b066b 100644
--- a/qutebrowser/browser/webengine/notification.py
+++ b/qutebrowser/browser/webengine/notification.py
@@ -691,11 +691,12 @@ def _as_uint32(x: int) -> QVariant:
variant = QVariant(x)
if machinery.IS_QT5:
- target_type = QVariant.Type.UInt
+ target = QVariant.Type.UInt
else: # Qt 6
- target_type = QMetaType(QMetaType.Type.UInt.value)
+ # FIXME:mypy PyQt6-stubs issue
+ target = QMetaType(QMetaType.Type.UInt.value) # type: ignore[call-overload]
- successful = variant.convert(target_type)
+ successful = variant.convert(target)
assert successful
return variant
@@ -1110,7 +1111,8 @@ class DBusNotificationAdapter(AbstractNotificationAdapter):
return None
bits = qimage.constBits().asstring(size)
- image_data.add(QByteArray(bits))
+ # FIXME:mypy PyQt6-stubs issue
+ image_data.add(QByteArray(bits)) # type: ignore[call-overload]
image_data.endStructure()
return image_data