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,12 +3,13 @@ from __future__ import annotations
from asyncio import Semaphore, coroutines, ensure_future, gather, get_running_loop
from asyncio.events import AbstractEventLoop
from collections.abc import Awaitable, Coroutine
import concurrent.futures
import functools
import logging
import threading
from traceback import extract_stack
from typing import Any, Awaitable, Callable, Coroutine, TypeVar
from typing import Any, Callable, TypeVar
_LOGGER = logging.getLogger(__name__)