Use PEP 695 misc (#117788)

This commit is contained in:
Marc Mueller
2024-05-20 12:01:49 +02:00
committed by GitHub
parent 649981e503
commit f50973c76c
6 changed files with 40 additions and 47 deletions

View File

@ -857,7 +857,7 @@ class HomeAssistant:
return task
@callback
def async_add_executor_job[_T, *_Ts](
def async_add_executor_job[*_Ts, _T](
self, target: Callable[[*_Ts], _T], *args: *_Ts
) -> asyncio.Future[_T]:
"""Add an executor job from within the event loop."""
@ -871,7 +871,7 @@ class HomeAssistant:
return task
@callback
def async_add_import_executor_job[_T, *_Ts](
def async_add_import_executor_job[*_Ts, _T](
self, target: Callable[[*_Ts], _T], *args: *_Ts
) -> asyncio.Future[_T]:
"""Add an import executor job from within the event loop.