Update typing 15 (#48079)

This commit is contained in:
Marc Mueller 2021-03-18 15:13:22 +01:00 committed by GitHub
parent dcca29ef68
commit 54d1e9985f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 190 additions and 166 deletions

View file

@ -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).