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:
umkay 2017-05-22 15:11:20 -07:00 committed by Eklavya Sharma
parent c955028350
commit a67e427293

View File

@ -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]]