Update typing syntax (#49480)
* Update typing syntax * Replace typing imports with ones from collections where possible * Changes after review
This commit is contained in:
parent
34245c3add
commit
c07646db5d
136 changed files with 284 additions and 168 deletions
|
@ -7,6 +7,7 @@ of entities and react to changes.
|
|||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Awaitable, Collection, Iterable, Mapping
|
||||
import datetime
|
||||
import enum
|
||||
import functools
|
||||
|
@ -17,19 +18,7 @@ import re
|
|||
import threading
|
||||
from time import monotonic
|
||||
from types import MappingProxyType
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
Awaitable,
|
||||
Callable,
|
||||
Collection,
|
||||
Coroutine,
|
||||
Iterable,
|
||||
Mapping,
|
||||
Optional,
|
||||
TypeVar,
|
||||
cast,
|
||||
)
|
||||
from typing import TYPE_CHECKING, Any, Callable, Coroutine, Optional, TypeVar, cast
|
||||
|
||||
import attr
|
||||
import voluptuous as vol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue