mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Use PEP 695 misc (#117788)
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user