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

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
35 changed files with 190 additions and 166 deletions

View File

@@ -1,7 +1,9 @@
"""The tests for the Apache Kafka component."""
from __future__ import annotations
from asyncio import AbstractEventLoop
from dataclasses import dataclass
from typing import Callable, Type
from typing import Callable
from unittest.mock import patch
import pytest
@@ -31,7 +33,7 @@ class FilterTest:
class MockKafkaClient:
"""Mock of the Apache Kafka client for testing."""
init: Callable[[Type[AbstractEventLoop], str, str], None]
init: Callable[[type[AbstractEventLoop], str, str], None]
start: Callable[[], None]
send_and_wait: Callable[[str, str], None]