Update typing 16 (#48087)
This commit is contained in:
parent
0f5efca76b
commit
4cb7718192
59 changed files with 180 additions and 166 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue