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,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]