mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
mypy: Add comment for future use of Deque.
In the future, the type annotation should use Deque in order to be compatible with the latest mypy version. See https://github.com/python/mypy/pull/2845 for more info.
This commit is contained in:
parent
c955028350
commit
a67e427293
@ -232,7 +232,7 @@ def compute_full_event_type(event):
|
||||
class EventQueue(object):
|
||||
def __init__(self, id):
|
||||
# type: (str) -> None
|
||||
self.queue = deque() # type: deque[Dict[str, Any]]
|
||||
self.queue = deque() # type: ignore # type signature should Deque[Dict[str, Any]] but we need https://github.com/python/mypy/pull/2845 to be merged
|
||||
self.next_event_id = 0 # type: int
|
||||
self.id = id # type: str
|
||||
self.virtual_events = {} # type: Dict[str, Dict[str, Any]]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user