Update typing syntax (#49480)
* Update typing syntax * Replace typing imports with ones from collections where possible * Changes after review
This commit is contained in:
parent
34245c3add
commit
c07646db5d
136 changed files with 284 additions and 168 deletions
|
@ -1,10 +1,10 @@
|
|||
"""Provide functionality to record stream."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections import deque
|
||||
import logging
|
||||
import os
|
||||
import threading
|
||||
from typing import Deque
|
||||
|
||||
import av
|
||||
|
||||
|
@ -21,7 +21,7 @@ def async_setup_recorder(hass):
|
|||
"""Only here so Provider Registry works."""
|
||||
|
||||
|
||||
def recorder_save_worker(file_out: str, segments: Deque[Segment]):
|
||||
def recorder_save_worker(file_out: str, segments: deque[Segment]):
|
||||
"""Handle saving stream."""
|
||||
|
||||
if not segments:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue