Skip to content

Commit

Permalink
Mypy compliance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blueset committed Nov 24, 2019
1 parent afe2af4 commit 20e5163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ehforwarderbot/__version__.py
@@ -1,3 +1,3 @@
# coding=utf-8

__version__ = "2.0.0b22"
__version__ = "2.0.0b23.dev1"
6 changes: 3 additions & 3 deletions ehforwarderbot/chat.py
Expand Up @@ -3,7 +3,7 @@
import copy
import warnings
from enum import Enum
from typing import List, Dict, Any, Optional, TypeVar
from typing import List, Dict, Any, Optional, TypeVar, Sequence

from .channel import EFBChannel
from .constants import ChatType
Expand All @@ -13,7 +13,7 @@
__all__ = ['EFBChat', 'EFBChatNotificationState']

# Allow mypy to recognize subclass output for `return self` methods.
EFBChatSelf = TypeVar('EFBChatSelf', bound='EFBChat')
EFBChatSelf = TypeVar('EFBChatSelf', bound='EFBChat', covariant=True)


class EFBChatNotificationState(Enum):
Expand Down Expand Up @@ -94,7 +94,7 @@ def __init__(self, channel: Optional[EFBChannel] = None,
self.chat_uid: ChatID = ChatID("")
self.is_chat: bool = True
self.notification: EFBChatNotificationState = EFBChatNotificationState.ALL
self.members: List[EFBChat] = []
self.members: Sequence[EFBChat] = []
self.group: Optional[EFBChat] = None
self.vendor_specific: Dict[str, Any] = dict()

Expand Down

0 comments on commit 20e5163

Please sign in to comment.