Update typing 15 (#48079)
This commit is contained in:
parent
dcca29ef68
commit
54d1e9985f
35 changed files with 190 additions and 166 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue