summaryrefslogtreecommitdiff
path: root/tests/end2end/fixtures/notificationserver.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/fixtures/notificationserver.py')
-rw-r--r--tests/end2end/fixtures/notificationserver.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/end2end/fixtures/notificationserver.py b/tests/end2end/fixtures/notificationserver.py
index 61cff7767..21cbb0e8d 100644
--- a/tests/end2end/fixtures/notificationserver.py
+++ b/tests/end2end/fixtures/notificationserver.py
@@ -4,7 +4,6 @@
import dataclasses
import itertools
-from typing import Dict, List
from qutebrowser.qt.core import QObject, QByteArray, QUrl, pyqtSlot
from qutebrowser.qt.gui import QImage
@@ -43,7 +42,7 @@ class TestNotificationServer(QObject):
self._bus = QDBusConnection.sessionBus()
self._message_id_gen = itertools.count(1)
# A dict mapping notification IDs to currently-displayed notifications.
- self.messages: Dict[int, NotificationProperties] = {}
+ self.messages: dict[int, NotificationProperties] = {}
self.supports_body_markup = True
self.last_id = None
@@ -195,7 +194,7 @@ class TestNotificationServer(QObject):
return message_id
@pyqtSlot(QDBusMessage, result="QStringList")
- def GetCapabilities(self, message: QDBusMessage) -> List[str]:
+ def GetCapabilities(self, message: QDBusMessage) -> list[str]:
assert not message.signature()
assert not message.arguments()
assert message.type() == QDBusMessage.MessageType.MethodCallMessage