Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions elementary/messages/messaging_integrations/mapped.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict
from typing import Generic, Mapping

from elementary.messages.message_body import MessageBody
from elementary.messages.messaging_integrations.base_messaging_integration import (
Expand All @@ -11,9 +11,12 @@
)


class MappedMessagingIntegration(BaseMessagingIntegration[str, MessageContextType]):
class MappedMessagingIntegration(
Generic[MessageContextType],
BaseMessagingIntegration[str, MessageContextType],
):
def __init__(
self, mapping: Dict[str, BaseMessagingIntegration[None, MessageContextType]]
self, mapping: Mapping[str, BaseMessagingIntegration[None, MessageContextType]]
):
self._mapping = mapping

Expand Down
Loading