Update typing 12 (#48073)
This commit is contained in:
parent
6cd6ad6904
commit
a3cd1854f6
75 changed files with 399 additions and 312 deletions
|
@ -1,8 +1,10 @@
|
|||
"""Provide functionality to record stream."""
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import os
|
||||
import threading
|
||||
from typing import Deque, List
|
||||
from typing import Deque
|
||||
|
||||
import av
|
||||
|
||||
|
@ -115,7 +117,7 @@ class RecorderOutput(StreamOutput):
|
|||
"""Return provider name."""
|
||||
return "recorder"
|
||||
|
||||
def prepend(self, segments: List[Segment]) -> None:
|
||||
def prepend(self, segments: list[Segment]) -> None:
|
||||
"""Prepend segments to existing list."""
|
||||
self._segments.extendleft(reversed(segments))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue