Improve type hints in stream tests (#123894)

This commit is contained in:
epenet 2024-08-14 12:47:38 +02:00 committed by GitHub
parent 36f9b69923
commit a712eca70a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ class WorkerSync:
@pytest.fixture
def stream_worker_sync(hass):
def stream_worker_sync() -> Generator[WorkerSync]:
"""Patch StreamOutput to allow test to synchronize worker stream end."""
sync = WorkerSync()
with patch(