We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c3b5f8 + fb3a94f commit e56a0d7Copy full SHA for e56a0d7
elementary/messages/messaging_integrations/mapped.py
@@ -1,4 +1,4 @@
1
-from typing import Dict
+from typing import Generic, Mapping
2
3
from elementary.messages.message_body import MessageBody
4
from elementary.messages.messaging_integrations.base_messaging_integration import (
@@ -11,9 +11,12 @@
11
)
12
13
14
-class MappedMessagingIntegration(BaseMessagingIntegration[str, MessageContextType]):
+class MappedMessagingIntegration(
15
+ Generic[MessageContextType],
16
+ BaseMessagingIntegration[str, MessageContextType],
17
+):
18
def __init__(
- self, mapping: Dict[str, BaseMessagingIntegration[None, MessageContextType]]
19
+ self, mapping: Mapping[str, BaseMessagingIntegration[None, MessageContextType]]
20
):
21
self._mapping = mapping
22
0 commit comments