Remove reference to typing.Deque (added in Python 3.6.1) (#26030)
* Remove reference to typing.Deque (added in Python 3.6.1) * Silence mypy * Type as collections.deque
This commit is contained in:
parent
1077ec1704
commit
a38bdc4deb
1 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,6 @@ from datetime import timedelta
|
|||
import logging
|
||||
import hashlib
|
||||
from random import SystemRandom
|
||||
from typing import Deque
|
||||
|
||||
import attr
|
||||
from aiohttp import web
|
||||
|
@ -315,7 +314,7 @@ class Camera(Entity):
|
|||
"""Initialize a camera."""
|
||||
self.is_streaming = False
|
||||
self.content_type = DEFAULT_CONTENT_TYPE
|
||||
self.access_tokens: Deque[str] = collections.deque([], 2)
|
||||
self.access_tokens: collections.deque = collections.deque([], 2)
|
||||
self.async_update_token()
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue