Update typing syntax (#49480)

* Update typing syntax

* Replace typing imports with ones from collections where possible

* Changes after review
This commit is contained in:
Marc Mueller
2021-04-20 17:40:41 +02:00
committed by GitHub
parent 34245c3add
commit c07646db5d
136 changed files with 284 additions and 168 deletions

View File

@@ -3,13 +3,14 @@ from __future__ import annotations
import asyncio
from collections import deque
from collections.abc import Container, Generator
from contextlib import contextmanager
from datetime import datetime, timedelta
import functools as ft
import logging
import re
import sys
from typing import Any, Callable, Container, Generator, cast
from typing import Any, Callable, cast
from homeassistant.components import zone as zone_cmp
from homeassistant.components.device_automation import (