Move top-level av import behind type checking flag (#49281)

* Move top-level av import behind type checking flag

* Lint
This commit is contained in:
Paulus Schoutsen 2021-04-15 18:18:25 -07:00 committed by GitHub
parent 283342bafb
commit 6604614c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -4,12 +4,10 @@ from __future__ import annotations
import asyncio
from collections import deque
import io
from typing import Any, Callable
from typing import TYPE_CHECKING, 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
@ -18,6 +16,10 @@ from homeassistant.util.decorator import Registry
from .const import ATTR_STREAMS, DOMAIN
if TYPE_CHECKING:
import av.container
import av.video
PROVIDERS = Registry()