Update typing 16 (#48087)

This commit is contained in:
Marc Mueller 2021-03-18 22:58:19 +01:00 committed by GitHub
parent 0f5efca76b
commit 4cb7718192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 180 additions and 166 deletions

View file

@ -202,9 +202,9 @@ async def async_test_home_assistant(loop, load_registries=True):
start_time: float | None = None
while len(self._pending_tasks) > max_remaining_tasks:
pending = [
pending: Collection[Awaitable[Any]] = [
task for task in self._pending_tasks if not task.done()
] # type: Collection[Awaitable[Any]]
]
self._pending_tasks.clear()
if len(pending) > max_remaining_tasks:
remaining_pending = await self._await_count_and_log_pending(