mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Replace old style type comments (#49103)
This commit is contained in:
parent
05468a50f4
commit
885f528711
@ -8,6 +8,8 @@ from typing import Any, Callable
|
||||
|
||||
from aiohttp import web
|
||||
import attr
|
||||
import av.container
|
||||
import av.video
|
||||
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
@ -24,9 +26,9 @@ class StreamBuffer:
|
||||
"""Represent a segment."""
|
||||
|
||||
segment: io.BytesIO = attr.ib()
|
||||
output = attr.ib() # type=av.OutputContainer
|
||||
vstream = attr.ib() # type=av.VideoStream
|
||||
astream = attr.ib(default=None) # type=Optional[av.AudioStream]
|
||||
output: av.container.OutputContainer = attr.ib()
|
||||
vstream: av.video.VideoStream = attr.ib()
|
||||
astream = attr.ib(default=None) # type=Optional[av.audio.AudioStream]
|
||||
|
||||
|
||||
@attr.s
|
||||
|
Loading…
x
Reference in New Issue
Block a user