Replace old style type comments (#49103)

This commit is contained in:
Marc Mueller 2021-04-12 17:07:18 +02:00 committed by GitHub
parent 05468a50f4
commit 885f528711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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