1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add type hints to tests (#89497)

This commit is contained in:
epenet
2023-03-10 12:06:50 +01:00
committed by GitHub
parent b8bda93d87
commit a0f725dfcb
23 changed files with 109 additions and 66 deletions

View File

@@ -75,7 +75,7 @@ def test_async_add_hass_job_schedule_callback() -> None:
assert len(hass.add_job.mock_calls) == 0
def test_async_add_hass_job_coro_named(hass) -> None:
def test_async_add_hass_job_coro_named(hass: HomeAssistant) -> None:
"""Test that we schedule coroutines and add jobs to the job pool with a name."""
async def mycoro():