mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Update typing 15 (#48079)
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
"""The tests for the Shell command component."""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
from typing import Tuple
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from homeassistant.components import shell_command
|
||||
@ -12,7 +12,7 @@ from homeassistant.setup import async_setup_component
|
||||
def mock_process_creator(error: bool = False):
|
||||
"""Mock a coroutine that creates a process when yielded."""
|
||||
|
||||
async def communicate() -> Tuple[bytes, bytes]:
|
||||
async def communicate() -> tuple[bytes, bytes]:
|
||||
"""Mock a coroutine that runs a process when yielded.
|
||||
|
||||
Returns a tuple of (stdout, stderr).
|
||||
|
Reference in New Issue
Block a user